<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="FixedAssetsUses">
    <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.assetsNo" class="q100" type="text" ms-keyup="onEnter" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">资产名称</span>
                                                     <input ms-duplex="queryinfo.name" class="q100" type="text" ms-keyup="onEnter" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">领用人</span>
                                                     <input ms-duplex="queryinfo.addBy" class="q100" type="text" ms-keyup="onEnter" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">部门</span>
                                                     <input ms-duplex="queryinfo.addByGroup" class="q100" type="text" ms-keyup="onEnter" />
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">大类</span>
                                                     <select  class="q100" ms-duplex="queryinfo.bigtypeId">
                                                         <option ms-repeat-r="bigtypes" ms-value="r.Id" ms-text="r.Name"></option>
                                                     </select>
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">小类</span>
                                                     <select  class="q100" ms-duplex="queryinfo.typeId">
                                                         <option ms-repeat-r="bigtypes" ms-value="r.Id" ms-text="r.Name"></option>
                                                     </select>
                                                 </div>
                                                 <div class="input-prepend">
                                                     <span class="add-on">领用日期</span>
                                                     <input type="text" style="width:90px;" ms-duplex="queryinfo.usesTime1" ms-widget='date,date1,dateOpts1' readonly="readonly" />
                                                     -
                                                     <input type="text" style="width:90px;margin-left:-18px;" ms-duplex="queryinfo.usesTime2" ms-widget='date,date2,dateOpts2' readonly="readonly" />
                                                 </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>领用列表</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="11">
                                <a ms-if="ADD"  href="javascript:void(0)" class="doadd" ms-click="showSave" >领用申请</a> 
                                <a ms-if="ADD"  href="javascript:void(0)" class="dook" ms-click="approval" >审批领用</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="20%" align="center">资产编号
                            </td>
                            <td width="10%" align="center">资产名称
                            </td>
                            <td width="15%" 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>
                            <td width="10%" align="center">领用日期</td>
                            <td width="10%" align="center">状态
                            </td>
                             <td width="5%" align="center">操作
                            </td>
                        </tr>
                    </thead>
                    <tbody> 
                        <tr ms-repeat-item="list" style="background-color: rgb(255, 255, 255);">
                            <td align="center">
                                 <input type="checkbox" ms-duplex-radio="item.checked">
                             </td>
                            <td align="left">
                                {{item.Assets.AssetsNo}}
                            </td>
                            <td align="left">
                                {{item.Assets.Name}}
                            </td>
                            <td align="left">
                                {{item.Assets.Type.Parent.Name}}
                            </td>
                            <td align="left">
                                {{item.Assets.Type.Name}}
                            </td>
                            <td align="center">
                                {{item.Specification}}
                            </td>
                            <td align="center">
                                {{item.AddBy.FullName}}
                            </td>
                            <td align="center">
                                {{item.AddBy.Group}}
                            </td>
                            <td align="center">
                                {{item.UsesTime|truncate(10,'')}}
                            </td>
                            <td align="center">
                                {{item.StateData}}
                            </td>
                            <td align="center">
                                <a href="javascript:void(0)" class="doview" ms-click="showView(item)" ms-title="lang.ViewBtn"></a>
                            </td>
                        </tr> 
                    </tbody>
                    <tfoot>
                        <tr>
                           <td colspan="11" ms-widget='paging,listPage,listOpts'>
                           </td>
                        </tr>
                    </tfoot>
                </table> 
                             </td>
                         </tr>
                     </tbody>

                 </table>
            </td>
        </tr>
    </tbody>
</table>
<noscript type="text/avalon" id="FixedAssetsUsesAdd_tmpl">
    <div ms-visible="tab=='tab1'" ms-css-width="tabWidth" style="padding:5px;">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="commontable tabtable shortSelect">
            <tbody>
                <tr>
                    <th style="width:90px; text-align:left">分配人：</th>
                    <td style="width:400px;text-align:left;">
                        <input ms-if="act!='view'" type="text" style="width:70px;" ms-duplex="entity.AssignBy.FullName" readonly="readonly">
                        <button ms-if="act!='view'" class="myfbt" type="button" ms-widget='dropDownGroupPostUserTree,assignByTree,assignByTreeOpts'><i class="iadduser"></i>选择</button>
                        <span ms-if="act=='view'">{{entity.AssignBy.FullName}}</span>
                    </td>
                    <th style="width:90px; text-align:left">领用人：</th>
                    <td style="width:100px;text-align:left;">
                        {{entity.AddBy.FullName}}
                    </td>
                    <th style="width:90px;text-align:left;">领用部门：</th>
                    <td style="text-align:left;">
                        {{entity.AddBy.Group}}
                    </td>
                </tr>
                <tr>
                    <th style="text-align:left">存放位置：</th>
                    <td colspan="3" style="text-align:left">
                        <input ms-if="act!='view'" type="text" style="width:148px;" ms-duplex="entity.Address">
                        <span ms-if="act=='view'">{{entity.Address}}</span>
                    </td>
                    <th style="text-align:left">领用日期：</th>
                    <td style="text-align:left">
                        <input ms-if="act!='view'" type="text" style="width:90px;" ms-duplex="entity.UsesTime" ms-widget='date,date3,dateOpts3' />
                        <span ms-if="act=='view'">{{entity.UsesTime|truncate(10,'')}}</span>
                    </td>
                </tr>
                <tr>
                    <td colspan="6"> 
                        <div class="boxTitlenob">
                                                                    <h2>
                                                                        <button ms-if="act!='view'" class="btn btn-mini btn-primary" type="button" ms-click="assetsSelect">+ 添加</button>资产清单
                                                                    </h2>
                                                                </div>
                                                                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" style="margin-bottom:5px;">
                                                                    <thead>
                                                                        <tr class="minhead" align="center">
                                                                            <td width="10%" align="center">资产编号</td>
                                                                            <td width="15%" align="center">资产名称</td>
                                                                            <td width="15%" align="center">规格</td>
                                                                            <td width="15%" align="center">领用说明</td>
                                                                            <td ms-if="act!='view'" width="10%" align="center">
                                                                                <a href="javascript:void(0)" class="dodel" ms-click="removeAllAssets" title="清空列表"></a>
                                                                            </td>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr ms-repeat-item="assetsList">
                                                                            <td align="center">{{item.Assets.AssetsNo}}</td>
                                                                            <td align="center">{{item.Assets.Name}}</td>
                                                                            <td align="center">{{item.Assets.Specification}}</td>
                                                                            <td align="center">
                                                                                <input ms-if="act!='view'"  type="text" ms-duplex="item.Description" style="width:80%;" />
                                                                                <span  ms-if="act=='view'" >{{item.Description}}</span>
                                                                            </td>
                                                                            <td ms-if="act!='view'"  align="center">
                                                                                <a href="javascript:void(0)" class="dodel" ms-click="$remove" ms-title="lang.DelBtn"></a>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                    </td>
                </tr>
                <tr>
                    <th style="text-align:left">备注：</th>
                    <td colspan="3">
                        <textarea ms-if="act!='view'" rows="2" cols="20" style="height:80px;width:98%;" ms-duplex="entity.ReMark"></textarea>
                        <span  ms-if="act=='view'" >{{entity.ReMark}}</span>
                    </td>
                </tr>
             </tbody>
        </table>
    </div>
</noscript>
<style type="text/css">
    .tabtable tr th {height:30px;}
    .tabtable tr td {height:30px;}
</style>