<div ms-controller="Products">
    <table border="0" align="center" cellpadding="0" cellspacing="0" id="mian">
        <tbody>
            <tr>
                <!--leftNav-->
                <td width="198" height="450" valign="top" id="tdleft" style="border-bottom: #d2d2d2 1px solid;">
                    <div id="left" ms-widget="leftMenu,productMenu">
                    </div>
                    <!--End leftNav-->
                </td>
                <td width="10">&nbsp;</td>
                <td valign="top" bgcolor="#FFFFFF" height="1" style="vertical-align: top; width: 198px;">
                    <table cellpadding="0" cellspacing="0" height="100%" class="bordergrag top10">
                        <tr>
                            <td style="vertical-align: top;">
                                <div class="boxTitlenoneb">
                                    <h2>
                                        <a href="javascript:void(0)" ms-click="expanCategory" style="color: #016b96; float: right; margin-right: 5px; font-size: 12px; font-weight: normal;">- 收起</a>
                                        {{lang.Category}}
                                    </h2>
                                    <ul id="productCategoryTree" class='ztree' ms-widget="productCategoryTree,ProductsCategoryTree,pCategoryTreeOpts" style="width: 198px; overflow: auto;"></ul>
                                    <br>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" style="width: 10px;">&nbsp;
                </td>
                <td valign="top">
                    <div class="top10">
                        <!--<h2>{{lang.ProductSearch}}</h2>-->
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhTable">
                            <tbody>
                                <tr>
                                    <td width="460" class="searchico">
                                        <div class="input-append" style="margin-bottom: 0px;">
                                            <input id="appendedInput" type="text" class="span4" ms-duplex="keyword" ms-attr-placeholder="lang.SearchKeyWord">
                                            <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="doClear" 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}}</a>
                                            </span>
                                        </div>
                                    </td>-->
                                </tr>
                            </tbody>
                        </table>
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhField" id="selword" style="margin-left: 0px;">
                            <tbody>
                                <tr class="quickword1">
                                    <td width="50%">
                                        <span>{{lang.SaleState}}</span>
                                        <div>
                                            <ul>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="istatic" value="0" class="selected">{{lang.Unlimited}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="istatic" value="1">{{lang.GoodsSale}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="istatic" value="2">{{lang.GoodsCancel}}</a></li>
                                            </ul>
                                        </div>
                                    </td>
                                    <td>
                                        <span>{{lang.SpecialProduct}}</span>
                                        <div>
                                            <ul>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="isspecial" value="0" class="selected">{{lang.Unlimited}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="isspecial" value="1">{{lang.Yes}}</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="isspecial" value="2">{{lang.No}}</a></li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="quickword1">
                                    <td>
                                        <span>{{lang.StockNumber}}</span>
                                        <div>
                                            <ul>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="kucunliang" value="0" class="selected">{{lang.Unlimited}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="kucunliang" value="1">0</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="kucunliang" value="2">&lt;30</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="kucunliang" value="3">30-100</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="kucunliang" value="4">&gt;100</a></li>
                                            </ul>
                                        </div>
                                    </td>
                                    <td>
                                        <span>{{lang.SaleNumber}}</span>
                                        <div>
                                            <ul>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="goumaicishu" value="0" class="selected">{{lang.Unlimited}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="goumaicishu" value="1">0</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="goumaicishu" value="2">1</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="goumaicishu" value="3">2-5</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="goumaicishu" value="4">&gt;5</a></li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="quickword1">
                                    <td>
                                        <div style="width: 118px; float: left;">
                                            <span id="brandid">{{lang.Brand|html}}</span>
                                            <a ms-click="itemMutiClick" href="javascript:void(0)" key="brandid" value="0" class="selected" style="margin-left: 10px;">{{lang.Unlimited}}</a>
                                            <div class="lseachbox" ms-if="expanbran">
                                                <input type="text" class="inputbox" ms-duplex="brankey" placeholder="品牌名称" style="width: 66px;">
                                                <button type="button" class="inputbt" ms-click="findBrand">
                                                </button>
                                            </div>
                                        </div>
                                        <div id="BrandListUl" ms-class-1="panelExpand:expanbran" ms-class-2="panelNotExpand:!expanbran">
                                            <ul>
                                                <li ms-repeat-item="brandDatas">
                                                    <label>
                                                        <input name="brands" type="checkbox" key="brandid" ms-click="itemMutiClick" ms-value="item.Id" ms-title="item.Name" style="margin-bottom: 5px;" />
                                                        <a style="margin-left: 0px;">{{item.Name}}</a>
                                                    </label>
                                                </li>
                                            </ul>
                                        </div>

                                        <a ms-if="brandDatasOriginal.size()>4" href="javascript:void(0)" ms-click="onExpanbran" class="quickmore" ms-class-1="down:!expanbran" ms-class-2="up:expanbran">{{expanbran?'收起':'更多'}}</a>
                                    </td>
                                    <td style="vertical-align: top;">
                                        <span>{{lang.ComplainNumber}}</span>
                                        <div>
                                            <ul>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="tousucishu" value="0" class="selected">{{lang.Unlimited}}</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="tousucishu" value="1">0</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="tousucishu" value="2">1</a> </li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="tousucishu" value="3">2-5</a></li>
                                                <li><a href="javascript:void(0)" ms-click="itemClick" key="tousucishu" value="4">&gt;5</a></li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="quickword1">
                                    <td>
                                        <div style="width: 118px; float: left;">
                                            <span id="cusid">{{lang.Supplier|html}}</span>
                                            <a ms-click="itemMutiClick" href="javascript:void(0)" key="cusid" value="0" class="selected" style="margin-left: 10px;">{{lang.Unlimited}}</a>
                                            <div class="input-append" ms-if="expansupplier">
                                                <input type="text" ms-duplex="supplierkey" placeholder="供应商名称" style="width: 60px;" />
                                                <span class="add-on" style="cursor: pointer;" ms-click="findSupplier">
                                                    <img src="/Content/Themes/Base/Images/ico/search_ico.png" /></span>
                                            </div>
                                        </div>
                                        <div id="CusListUl" ms-class-1="panelExpand:expansupplier" ms-class-2="panelNotExpand:!expansupplier">
                                            <ul>
                                                <li ms-repeat-item="supplierDatas">
                                                    <label style="display: inline; margin-right: 8px;">
                                                        <input name="customs" type="checkbox" key="cusid" ms-click="itemMutiClick" ms-value="item.Id" ms-title="item.Name" style="margin-bottom: 5px;" />
                                                        <a style="padding: 0; margin: 0;">{{item.Name}}</a>
                                                    </label>
                                                </li>
                                            </ul>

                                        </div>
                                        <a ms-if="supplierDatasOriginal.size()>4" href="javascript:void(0)" ms-click="onExpansupplier" class="quickmore" ms-class-1="down:!expanbran" ms-class-2="up:expanbran">更多</a>
                                    </td>
                                    <td>&nbsp;</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="doClear">{{lang.ClearAll}}</a></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!--产品列表-->
                        <div id="productlist">
                            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList bottom10" style="margin-bottom: 1px;">
                                <thead>
                                    <tr class="dobtn">
                                        <td colspan="10">
                                            <a ms-if="ADD" href="javascript:void(0);" class="doadd" ms-click="doadd">{{lang.AddBtn}}</a>
                                            <a ms-if="ADD" href="javascript:void(0);" class="docopy" ms-click="docopy">复制</a>
                                            <a ms-if="ADD" href="javascript:void(0)" class="shiftype" ms-click="doupdatefield('trun')">{{lang.ChangeCategory}}</a>
                                            <a ms-if="UP" href="javascript:void(0)" class="grounding" ms-click="doupdatefield('up')">{{lang.GoodsSale}}</a>
                                            <a ms-if="DOWN" href="javascript:void(0)" class="undercarriage" ms-click="doupdatefield('down')">{{lang.GoodsCancel}}</a>
                                            <a ms-if="DELETE" href="javascript:void(0)" class="doalldel" ms-click="doalldel">{{lang.BtachDelBtn}}</a>
                                        </td>
                                    </tr>
                                    <tr class="head">
                                        <td width="3%" align="center">
                                            <input type="checkbox" class="checkAll">
                                        </td>
                                        <td width="5%" align="center">编号</td>
                                        <td width="17%" align="center">{{lang.ProductName}}
                                        </td>
                                        <!--<td width="10%">助记简称</td>-->
                                        <td width="10%" align="center">产品分类</td>
                                        <td width="6%" align="center">品牌
                                        </td>
                                        <td width="10%" align="center">{{lang.Standard|truncate(15,'')}}
                                        </td>
                                        <td width="6%" align="center">标准价
                                        </td>
                                        <td width="6%" align="center">状态
                                        </td>
                                        <td width="6%" align="center">录入时间
                                        </td>
                                        <td width="9%" align="center">{{lang.Operate}}
                                        </td>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ms-class-1="productdown:item.State!=1" ms-title="item.State==1?'':'产品已下架'" ms-repeat-item="productList">
                                        <td align="center">
                                            <input type="checkbox" name="checkbox" ms-value="item.Id">
                                        </td>
                                        <td align="center">{{item.No}}</td>
                                        <td>
                                            <a href="javascript:void(0)" ms-click="doview(item.Id)">{{item.Name|truncate(30,'...')}}</a>
                                        </td>
                                        <!--<td>{{item.Abbreviation}}</td>-->
                                        <td align="center">{{item.CategoryName}}</td>
                                        <td align="center">{{item.Brand.Name}}
                                        </td>
                                        <td align="center">{{item.Standard}}
                                        </td>
                                        <td align="center">{{item.GeneralCustomerPrice}}
                                        </td>
                                        <td align="center">
                                            <i ms-if="item.State==1" class="proup" title="正常"></i>
                                            <i ms-if="item.State!=1" class="prodown" title="产品已下架"></i>
                                        </td>
                                        <td align="center">{{item.AddTime}}
                                        </td>
                                        <td align="center">
                                            <a class="doview" ms-attr-title="lang.ViewBtn" href="javascript:void(0)" ms-click="doview(item.Id)"></a>
                                            <a ms-if='item.EDIT' class="doedit" ms-attr-title="lang.EditBtn" href="javascript:void(0)" ms-click="doedit(item.Id)"></a>
                                            <a ms-if='!item.EDIT' class="noedit" ms-attr-title="lang.EditBtn" href="javascript:void(0)"></a>
                                            <a ms-if='item.DELETE' href="javascript:void(0)" class="dodel" ms-attr-title="lang.DelBtn" ms-click="dodel(item.Id)"></a>
                                            <a ms-if='!item.DELETE' href="javascript:void(0)" class="nodel" ms-attr-title="lang.DelBtn"></a>
                                        </td>
                                    </tr>

                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="10" ms-widget='paging,upaing,productpaing'></td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <!--转移分类-->
    <noscript type="text/avalon" id="trunCategoryTemplate">
        <table cellspacing="0" cellpadding="0" width="100%" border="0" class="commontable">
            <tr>
                <td width="80">目标分类:</td>
                <td align="left">
                    <input type="hidden" ms-duplex="TrunCategoryId" />
                    <input type="text" readonly="readonly" ms-duplex="TrunCategoryName" />
                    <button type="button" class="myfbt" id="Button1" ms-widget='dropDownPCategoryTree,setTrunCategory,setTrunCategoryTreeOpts'>
                        <i class="customer"></i>
                    </button>
                </td>
            </tr>
        </table>
    </noscript>
    <!--特供价格新增修改-->
    <noscript type="text/avalon" id="specialTemplate">
        <table cellspacing="0" cellpadding="0" width="400px;" border="0" class="commontable">
            <tr>
                <td width="80">客户名称：</td>
                <td>
                    <input type="hidden" ms-duplex="proentity.Id" />
                    <input type="hidden" ms-duplex="proentity.CustomerId" />
                    <input type="text" readonly="readonly" ms-duplex="proentity.CustomerDisplay" />
                    <button type="button" class="myfbt" id="Button2" ms-click="selectSpecialCus()">
                        <i class="customer"></i>
                    </button>
                </td>
            </tr>
            <tr>
                <td>价格：</td>
                <td>
                    <div class="input-append">
                        <input type="text" ms-duplex="proentity.Prints" style="width: 80px;">
                        <span class="add-on">元</span>
                    </div>
                </td>
            </tr>
        </table>
    </noscript>

</div>
<style>
    #productOtherContent #mian {
        background: white;
        overflow: hidden;
        width: 100%;
        border: none;
        margin: 0;
    }

    .f12 {
        font-size: 12px;
    }

    .panelExpand {
        float: left;
        max-width: 320px;
        overflow: auto;
        height: 96px;
    }

    .panelNotExpand {
        float: left;
        max-width: 320px;
        overflow: hidden;
        height: 32px;
    }
</style>
