<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="GoodsList">
    <tbody>
        <tr>
            <!--leftNav-->
            <td width="198" height="450" valign="top" id="tdleft">
                <div id="left">
                    <h2>物品资产
                    </h2>
                    <ul> 
                        <li><b></b><a  href="#/Office/GoodsAssets/" class="wdgk_ico">我的概况</a></li>
                        <li><b></b><a  ms-click ="onSubNav('goods')" href="javascript:void(0);" class="ypgl_ico">用品管理</a></li>
                        <div ms-visible="showSubNav == 'goods'" class="subbox">
                            <ul>
                                <li><a href="#/Office/GoodsList">物品维护</a></li>
                                <li><a href="#/Office/GoodsInventory">库存盘点</a></li>
                                <li><a href="#/Office/GoodsPurchase">采购历史</a></li>
                                <li><a href="#/Office/GoodsStorage">采购入库</a></li>
                                <li><a href="#/Office/GoodsUses">领用历史</a></li>
                                <li><a href="#/Office/GoodsMyUses">我的领用</a></li>
                            </ul>
                        </div> 
                        <li><b></b><a  ms-click ="onSubNav('books')" href="javascript:void(0);" class="tsgl_ico">图书管理</a></li>
                        <div ms-visible="showSubNav == 'books'" class="subbox">
                            <ul>
                                <li><a href="#/Office/BooksBorrow">借阅管理</a></li>
                                <li><a href="#/Office/BooksReturn/0/" >归还管理</a></li>
                                <li><a href="#/Office/Books/" >书籍管理</a></li>
                            </ul>
                        </div> 
                        <li><b></b><a ms-click ="onSubNav('cars')" href="javascript:void(0);" class="clgl_ico">车辆管理</a></li>
                        <div ms-visible="showSubNav == 'cars'" class="subbox">
                            <ul>
                                <li><a href="#/Office/CarApply">用车申请</a></li>
                                <li><a href="#/Office/CarAppoint">派车管理</a></li>
                                <li><a href="#/Office/CarUsesInfo">车辆使用信息</a></li>
                                <li><a href="#/Office/CarUseSearch">用车查询</a></li>
                                <li><a href="#/Office/CarInsure">车辆保险</a></li>
                                <li><a href="#/Office/CarService">车辆维修保养</a></li>
                                <li><a href="#/Office/Car">车辆档案</a></li>
                            </ul>
                        </div>
                        <li class="last"><b></b><a  ms-click ="onSubNav('assets')" href="javascript:void(0);" class="zcgl_ico">资产管理</a></li> 
                        <div ms-visible="showSubNav == 'assets'" class="subbox">
                            <ul>
                                <li><a href="#/Office/FixedAssetsMy">我的资产</a></li>
                                <li><a href="#/Office/FixedAssets" >资产登记</a></li>
                                <li><a href="#/Office/FixedAssetsUses" >资产领用</a></li>
                                <li><a href="#/Office/FixedAssetsReturn" >资产归还</a></li>
                                <li><a href="#/Office/FixedAssetsRepairs" >资产报修</a></li>
                                <li><a href="#/Office/FixedAssetsRepairsConfirm" >维修确认</a></li>
                                <li><a href="#/Office/FixedAssetsScrap" >资产报废</a></li>
                                <li><a href="#/Office/FixedAssetsReport" >资产报表</a></li>
                                <li><a href="#/Office/FixedAssetsSet" >后台设置</a></li>
                            </ul>
                        </div>
                    </ul>
                </div>
                <!--End leftNav-->
            </td>
            <td valign="top" id="right" class="addrightbg">
                <div class="boxtip" id="boxtip">
                    <h1>物品维护</h1>
                    <p> 物品列表</p>
                    <a href="javascript:history.go(-1)" class="btn_back"></a>
                </div> 
                 <table width="100%">
                     <tbody>
                         <tr>
                             <td valign="top">
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="seacrhTable">
                                     <tbody>
                                         <tr>
                                             <td>
                                                 <div class="input-prepend">
                                                     <span class="add-on">物品编号</span>
                                                     <input ms-duplex="queryinfo.goodsNo" class="q100" type="text" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">品名</span>
                                                     <input ms-duplex="queryinfo.name" class="q100" type="text" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">类别</span>
                                                     <select  class="q100" ms-duplex="queryinfo.typeId">
                                                         <option ms-repeat-r="typeDict" ms-value="r.Id" ms-text="r.Data"></option>
                                                     </select>
                                                 </div>
                                                 <button ms-click="doSearch" type="button" class="btn btn-primary qbtn" style="margin-bottom:18px;" >查询</button>
                                             </td>
                                         </tr>
                                     </tbody>
                                 </table>
                <div class="boxTitlenob">
                    <h2>物品列表<span ms-if="loading" class="loading">&nbsp;</span></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="showAdd" >{{lang.AddBtn}}</a> 
                                <!--<a ms-if="DELETE" href="javascript:void(0)" class="doalldel" ms-click="doRemoveAll">{{lang.BtachDelBtn}}</a> -->
                            </td>
                        </tr>
                        <tr class="head" style="background-color: rgb(250, 250, 250);">
                            <td width="3%" align="center">
                                 <input type="checkbox" ms-duplex-radio="checkall">
                            </td>
                            <td width="10%" align="center">物品编号
                            </td>
                            <td width="25%" align="center">品名
                            </td>
                            <td width="15%" align="center">类别
                            </td>
                            <td width="20%" 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="list" style="background-color: rgb(255, 255, 255);">
                            <td align="center">
                                 <input type="checkbox" name="checkbox" ms-duplex-radio="item.checked">
                             </td>
                            <td align="left"><a href="javascript:void(0)" ms-click="showView(item)">{{item.GoodsNo}}</a>
                            </td>
                            <td align="left">
                                {{item.Name}}
                            </td>
                            <td align="left">
                                {{item.TypeIdData}}
                            </td>
                            <td align="center">
                                {{item.Specification}}
                            </td>
                            <td align="center">
                                {{item.Unit}}
                            </td>
                            <td align="center">{{item.ReferencePrice}}
                            </td>
                            <td align="center">
                                <a href="javascript:void(0)" class="doview" ms-click="showView(item)" ms-value="item.Id" ms-title="lang.ViewBtn"></a>
                                <a ms-if="item.EDIT" href="javascript:void(0)" class="doedit" ms-click="showEdit(item)" 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="doRemove(item)" 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>
                           <td colspan="8" ms-widget='paging,listPage,listOpts'>
                           </td>
                        </tr>
                    </tfoot>
                </table> 
                             </td>
                         </tr>
                     </tbody>

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

<!--新增-->
<noscript type="text/avalon" id="GoodsformTemplate">
    <div ms-visible="tab=='tab1'" ms-css-width="tabWidth" ms-css-height="tabHeight">
        <table cellspacing="0" cellpadding="0" border="0" class="commontable shortSelect">
            <tbody>
                <tr>
                    <th style="width:70px;">物品编号：</th>
                    <td style="">
                        <input type="text" ms-duplex="entity.GoodsNo"  />
                        <span class="must">*</span>
                    </td>
                    <th style="width:90px;">物品分类：</th>
                    <td>
                        
                        <select ms-duplex="entity.TypeId">
                             <option ms-repeat-r="typeDict" ms-value="r.Id" ms-text="r.Data"></option>
                        </select>
                        <span class="must">*</span>
                    </td>
                </tr>
                <tr>
                    <th>品名：</th>
                    <td> 
                        <input type="text" ms-duplex="entity.Name"  />
                    </td>
                    <th>规格：</th>
                    <td>
                        <input type="text" ms-duplex="entity.Specification"  />
                    </td>
                </tr>
                <tr>
                    <th>单位：</th>
                    <td> 
                        <input type="text" ms-duplex="entity.Unit"  />
                    </td>
                    <th>参考价格：</th>
                    <td>
                        <input type="text" ms-duplex="entity.ReferencePrice"  />
                    </td>
                </tr>
                <tr>
                    <th>录入人：</th>
                    <td> 
                        {{entity.AddBy.FullName}}
                    </td>
                        
                    <th>录入时间：</th>
                    <td>
                        {{entity.AddTime}}
                    </td>
                </tr>
             </tbody>
        </table>
    </div>
</noscript>

<!--查看-->
<noscript type="text/avalon" id="GoodsviewTemplate"> 
      <div>
        <ul class="tabWarp">
            <li ms-class-1="hover:tab=='tab1'" ms-class-2="normal:tab!='tab1'" val="tab1" ms-click="tabChange">物品信息</li>
        </ul>
    </div>

    <div id="tab3" ms-visible="tab=='tab1'" ms-css-width="tabWidth" ms-css-height="tabHeight">
        <table cellspacing="1" cellpadding="0" width="95%" align="center" border="0" class="tablecInfo">
            <tbody>
                <tr>
                    <td style="width:70px;">物品编号：</td>
                    <td style="">
                        {{entity.GoodsNo}}
                    </td>
                    <td style="width:90px;">物品分类：</td>
                    <td>
                        {{entity.TypeIdData}}
                    </td>
                </tr>
                <tr>
                    <td>品名：</td>
                    <td> 
                        {{entity.Name}}
                    </td>
                    <td>规格：</td>
                    <td>
                        {{entity.Specification}}
                    </td>
                </tr>
                <tr>
                    <td>单位：</td>
                    <td> 
                        {{entity.Unit}}
                    </td>
                    <td>参考价格：</td>
                    <td>
                        {{entity.ReferencePrice}}
                    </td>
                </tr>
                <tr>
                    <td>录入人：</td>
                    <td> 
                        {{entity.AddBy.FullName}}
                    </td>
                        
                    <td>录入时间：</td>
                    <td>
                        {{entity.AddTime}}
                    </td>
                </tr>
             </tbody>
        </table>
    </div>
</noscript>