<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="marketingchanneldevelop">
    <tbody>
        <tr>
            <!--leftNav-->
            <td width="198" height="450" valign="top" id="tdleft">
                <div id="left" ms-widget="leftMenu">
                </div>
                <!--End leftNav-->
            </td>
            <td valign="top" id="right" class="addrightbg">
                <div class="boxtip" id="boxtip">
                    <h1>渠道开发维护</h1>
                    <p>对各级渠道代理经销商实施的跟进、辅导、巡视、培训等行为过程。 </p>
                    <a href="#/Market/Channel" class="btn_back"></a>
                </div>
                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhTable">
                    <tbody>
                        <tr>
                            <td width="460" class="searchico">
                                <div class="input-append" style="margin-bottom: 10px;">
                                    <input type="text" class="span4" ms-duplex="keyword" placeholder="请输入标题快速检索" ms-enter="doSearch">
                                    <button class="add-on ibtsearch" type="button" id="btnsel" ms-click="doSearch" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                        {{lang.SearchBtn}}
                                    </button>
                                    <button class="add-on ibtsearch clearall" type="button" ms-click="clear" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                        {{lang.ShowAllBtn}}</button>
                                </div>
                            </td>
                            <td class="fgray">
                                <span style="float: left;">{{lang.SearchHistory}}</span><div class="hotlist">
                                    <span class="bindSearchHistory" ms-each-item="history">
                                        <a href="javascript:void(0)" ms-value="item" ms-click="historyClick">{{item}}&nbsp;&nbsp;</a>
                                    </span>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhField">
                    <tbody>
                        <tr class="quickword">
                            <td>
                                <span id="behavior">行为分类</span>
                                <div style="display: inline;">
                                    <a href="javascript:void(0)" class="selected" ms-click="itemClick" value="0" key="behavior">{{lang.Unlimited}}</a>
                                    <a href="javascript:void(0)" ms-repeat-item="behaviorData" ms-click="itemClick" ms-attr-value="item.Id" key="behavior">{{item.Data}}</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="seabox"><span class="first">{{lang.CurrSearchCondition}}</span>
                                <div style="display: inline;" ms-with="showItem">
                                    <span class="searchItem" ms-if="$val">{{$val}}<i><a href="javascript:void(0)" ms-click="remove"></a></i></span>
                                </div>
                                <span class="last" ms-if="has"><a href="javascript:void(0)" ms-click="clear">{{lang.ClearAll}}</a></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <!--<div class="boxTitlenob">
                    <h2> 渠道开发维护列表</h2>
                </div>-->
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" id="tableList">
                    <thead>
                        <tr class="dobtn" style="background-color: rgb(255, 255, 255);">
                            <td colspan="9">
                                <a ms-if="ADD" href="javascript:void(0)" class="doadd" ms-click="doadd">{{lang.AddBtn}}</a>
                                <a ms-if="DELETE" href="javascript:void(0)" class="doalldel" ms-click="doalldel">{{lang.BtachDelBtn}}</a>
                            </td>
                        </tr>
                        <tr class="head" style="background-color: rgb(250, 250, 250);">
                            <td width="3%" align="center">
                                <input type="checkbox" class="checkAll">
                            </td>
                            <td width="27%" align="center">标题
                            </td>
                            <td width="30%" align="center">渠道代理商
                            </td>
                            <td width="10%" align="center">行为分类
                            </td>
                            <td width="10%" align="center">发布人
                            </td>
                            <td width="10%" align="center">发布时间
                            </td>
                            <td width="10%" align="center">操作
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ms-repeat-item="channeldevelopList" style="background-color: rgb(255, 255, 255);">
                            <td align="center">
                                <input type="checkbox" name="checkbox" ms-value="item.Id">
                            </td>
                            <td align="left">
                                <a href="javascript:void(0)" ms-click="doview" ms-value="item.Id">{{item.Title}}</a>
                            </td>
                            <td align="left">
                                <a ms-href="'#/Customer/DetailCustomer/'+item.ChannelAgentId">{{item.ChannelAgentDisplay}}</a>
                            </td>
                            <td align="center">{{item.BehaviorDisplay}}
                            </td>
                            <td align="center">{{item.AddBy.FullName}}
                            </td>
                            <td align="center">{{item.AddTime | truncate(10,'')}}
                            </td>
                            <td align="center">
                                <a href="javascript:void(0)" class="doview" ms-click="doview" ms-value="item.Id" ms-title="lang.ViewBtn"></a>
                                <a ms-if="item.EDIT" href="javascript:void(0)" class="doedit" ms-click="doedit" ms-value="item.Id" ms-title="lang.EditBtn"></a>
                                <a ms-if="!item.EDIT" href="javascript:void(0)" class="noedit" ms-title="lang.EditBtn"></a>
                                <a ms-if="item.DELETE" href="javascript:void(0)" class="dodel" ms-click="dodel" ms-attr-index="$index" ms-value="item.Id" ms-title="lang.DelBtn"></a>
                                <a ms-if="!item.DELETE" href="javascript:void(0)" class="nodel" ms-title="lang.DelBtn"></a>
                            </td>
                        </tr>

                    </tbody>
                    <tfoot>
                        <tr style="background-color: rgb(255, 255, 255);">
                            <td colspan="9" ms-widget='paging,upaing,channeldeveloppaing'></td>
                        </tr>
                    </tfoot>
                </table>
            </td>
        </tr>
    </tbody>
</table>

<!--新增或修改--->
<noscript type="text/avalon" id="formTemplateDevelop">
    <table cellspacing="0" cellpadding="0" width="98%" border="0" class="commontable">
        <tbody>
            <tr>
                <th width="90">渠道代理商：
                </th>
                <td width="320">
                    <input ms-duplex="entity.ChannelAgentDisplay" type="text" readonly="readonly" style="width: 200px;">
                    <button class="myfbt" ms-click="selectSupliers" type="button"><i class="customer"></i></button>
                    <span class="must">*</span>
                </td>
                <th>联系人：</th>
                <td align="left" colspan="3">
                    <input ms-duplex="entity.ContactDisplay" type="text" readonly="readonly" style="width: 130px;">
                </td>
            </tr>
            <tr>
                <th>执行人：
                </th>
                <td align="left">
                    <input type="hidden" ms-duplex="entity.Executor" />
                    <input type="text" style="width: 200px" ms-duplex="entity.ExecutorDisplay" readonly="readonly" />
                    <button class="myfbt" type="button" ms-click="selectExecutor()">
                        <i class="iadduser"></i>
                    </button>
                    <span class="must">*</span>
                </td>
                <th>执行时间：
                </th>
                <td align="left">
                    <input ms-duplex="entity.ExecutorTime" ms-widget="date,executortimeid,executortimeOpts" type="text" readonly="readonly" style="width: 130px;" /><span class="must">*</span>
                </td>
            </tr>
            <tr>
                <th>标题：
                </th>
                <td align="left">
                    <input ms-duplex="entity.Title" type="text" style="width: 278px;">&nbsp;<span class="must">*</span>
                </td>
                <th>行为分类：
                </th>
                <td align="left">
                    <select ms-duplex="entity.Behavior" style="width: 145px;">
                        <option ms-repeat-item="behaviorData" ms-value="item.Id">{{item.Data}}</option>
                    </select>
                </td>
            </tr>
            <tr style="">
                <th valign="top">内容描述：
                </th>
                <td align="left" colspan="3">
                    <textarea id="txtContent" name="txtContent" style="width: 90%; height: 150px;" ms-duplex="entity.Content"></textarea>
                </td>
            </tr>
            <tr>
                <th>录入人：
                </th>
                <td align="left">
                    <input ms-duplex="entity.AddBy.FullName" type="text" readonly="readonly" style="width: 100px;">
                </td>
                <th>录入时间：
                </th>
                <td align="left">
                    <input ms-duplex="entity.AddTime" type="text" readonly="readonly" style="width: 120px;">
                </td>
            </tr>
        </tbody>
    </table>
</noscript>

<!--查看-->
<noscript type="text/avalon" id="viewTemplateDevelop">
    <table cellspacing="1" cellpadding="0" width="100%" border="0" class="tablecInfo">
        <tbody>
            <tr>
                <td>渠道代理商：
                </td>
                <td>{{entity.ChannelAgentDisplay}}
                </td>
                <td>联系人：
                </td>
                <td>{{entity.ContactDisplay}}   
                </td>
            </tr>
            <tr>
                <td width="80">执&nbsp;行&nbsp;人：
                </td>
                <td width="250">{{entity.ExecutorDisplay}}
                </td>
                <td width="80">执行时间：
                </td>
                <td width="250">{{entity.ExecutorTime}}
                </td>
            </tr>
            <tr>
                <td>标&nbsp;&nbsp;&nbsp;&nbsp;题：
                </td>
                <td>{{entity.Title}}
                </td>
                <td>行为分类：
                </td>
                <td>{{entity.Behavior}}
                </td>
            </tr>
            <tr>
                <td valign="top">内容描述：
                </td>
                <td colspan="3" style="height: 150px;">
                    <div style="height: 150px; overflow: auto;">{{entity.Content|html}}</div>
                </td>
            </tr>
            <tr>
                <td>录&nbsp;入&nbsp;人：
                </td>
                <td>{{entity.AddBy.FullName}}
                </td>
                <td>录入时间：
                </td>
                <td>{{entity.AddTime}}
                </td>
            </tr>
        </tbody>
    </table>
</noscript>
