<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="FixedAssetsFinance">
    <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>
                                                     <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="querytypes" 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.billDate1" ms-widget='date,date1,dateOpts1' readonly="readonly" />
                                                     -
                                                     <input type="text" style="width:90px;margin-left:-18px;" ms-duplex="queryinfo.billDate2" 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>资产台账<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="head" style="background-color: rgb(250, 250, 250);">
                            <td width="3%" align="center">
                                 <input type="checkbox" ms-duplex-radio="checkall">
                            </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="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="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.AssetsNo}}</a>
                            </td>
                            <td align="left">
                                {{item.Name}}
                            </td>
                            <td align="left">
                                {{item.Type && item.Type.Parent.Name}}
                                
                            </td>
                            <td align="left">
                                {{item.Type && item.Type.Name}}
                            </td>
                            <td align="center">
                                {{item.Specification}}
                            </td>
                            <td align="center">
                                {{item.BillDate|truncate(10,'')}}
                            </td>
                            <td align="center">
                                {{item.BillMoney}}
                            </td>
                            <td align="center">
                                {{item.ResidualValueRate}}
                            </td>
                            <td align="center">
                                {{item.StateData}}
                            </td>
                            <td align="center">
                                {{item.ResidualValue}}
                            </td>
                            <td align="center">
                                {{item.NetWorth}}
                            </td>
                            <td align="center">{{item.UseBy?item.UseBy.FullName:""}}
                            </td>
                        </tr> 
                    </tbody>
                    <tfoot>
                        <tr>
                           <td colspan="13" ms-widget='paging,listPage,listOpts'>
                           </td>
                        </tr>
                    </tfoot>
                </table> 
                             </td>
                         </tr>
                     </tbody>

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

<!--查看-->
<noscript type="text/avalon" id="FixedAssetsviewTemplate">
    <div>
        <ul class="tabWarp">
            <li ms-class-1="hover:tab=='tab1'" ms-class-2="normal:tab!='tab1'" val="tab1" ms-click="tabChange">基本信息</li>
            <li ms-class-1="hover:tab=='tab2'" ms-class-2="normal:tab!='tab2'" val="tab2" ms-click="tabChange">配置信息</li>
            <li ms-class-1="hover:tab=='tab3'" ms-class-2="normal:tab!='tab3'" val="tab3" ms-click="tabChange">资产流向</li>
            <li ms-class-1="hover:tab=='tab4'" ms-class-2="normal:tab!='tab4'" val="tab4" ms-click="tabChange">折旧历史</li>
        </ul>
    </div>
    <div id="tab1" ms-visible="tab=='tab1'" ms-css-width="tabWidth" class="tabContent2">
        <table cellspacing="1" cellpadding="0" border="0" class="tablecInfo">
            <tbody>
                <tr>
                    <td style="width:90px;">资产编号：</td>
                    <td style="">
                        {{entity.AssetsNo}}
                    </td>
                    <td style="width:90px;">资产名称：</td>
                    <td>
                        {{entity.Name}}
                    </td>
                </tr>
                <tr>
                    <td>凭证号：</td>
                    <td> 
                        {{entity.Voucher}}
                    </td>
                    <td>规格：</td>
                    <td>
                        {{entity.Specification}}
                    </td>
                </tr>
                <tr>
                    <td>所属大类：</td>
                    <td> 
                        {{entity.Type.Parent.Name}}
                    </td>
                    <td>所属小类：</td>
                    <td>
                        {{entity.Type.Name}}
                    </td>
                </tr>
                <tr>
                    <td>发票金额：</td>
                    <td> 
                        {{entity.BillMoney}}
                    </td>
                    <td>发票日期：</td>
                    <td>
                        {{entity.BillDate}}
                    </td>
                </tr>
                <tr>
                    <td>折旧年限：</td>
                    <td> 
                        {{entity.DepreciationPeriod}}
                    </td>
                    <td>折旧开始日期：</td>
                    <td>
                        {{entity.DepreciationStart}}
                    </td>
                </tr>
                <tr>
                    <td>残值率(%)：</td>
                    <td> 
                        {{entity.ResidualValueRate}}
                    </td>
                    <td>资产状态：</td>
                    <td>
                        {{entity.StateData}}
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">备注：</td>
                    <td colspan="3">
                        {{entity.ReMark}}
                    </td>
                </tr>
             </tbody>
        </table>
    </div>
    <div id="tab2" ms-visible="tab=='tab2'" ms-css-width="tabWidth" class="min200 tabContent2">
        <table border="0" cellspacing="1" cellpadding="0" class="tableList" align="center">
            <thead>
                <tr class="minhead" align="center">
                    <td width="25%" align="center">配置名称</td>
                    <td width="25%" align="center">规格型号</td>
                    <td width="20%" align="center">数量</td>
                    <td width="30%" align="center">配置备注</td>
                </tr>
            </thead>
            <tbody>
                <tr ms-repeat-item="configList">
                    <td align="center">
                        {{item.Name}}
                        
                    </td>
                    <td align="center">
                        {{item.Specification}}
                        
                    </td>
                    <td align="center">
                        {{item.Number}}
                        
                    </td>
                    <td align="center">
                        {{item.ReMark}}
                        
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="tab3" ms-visible="tab=='tab3'" ms-css-width="tabWidth" class="min200 tabContent2">
        <table  border="0" cellspacing="1" cellpadding="0" class="tableList">
            <thead>
                <tr class="minhead" align="center">
                    <td width="25%" align="center">日期</td>
                    <td width="25%" align="center">业务类型</td>
                    <td width="25%" align="center">负责人</td>
                    <td width="25%" align="center">负责人部门</td>
                </tr>
            </thead>
            <tbody>
                <tr ms-repeat-item="flowList">
                    <td align="center">
                        {{item.AddTime|truncate(10,'')}}
                    </td>
                    <td align="center">
                        {{item.BusinessType}}
                    </td>
                    <td align="center">
                        {{item.AddBy.FullName}}
                    </td>
                    <td align="center">
                        {{item.AddBy.Group}}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="tab4" ms-visible="tab=='tab4'" ms-css-width="tabWidth" class="min200 tabContent2">
        <table border="0" cellspacing="1" cellpadding="0" class="tableList">
            <thead>
                <tr class="minhead" align="center">
                    <td width="15%" align="center">折旧开始时间</td>
                    <td width="15%" align="center">资产原值</td>
                    <td width="10%" align="center">折旧年月</td>
                    <td width="10%" align="center">本月折旧值</td>
                    <td width="15%" align="center">本月残值</td>
                    <td width="15%" align="center">操作日期</td>
                    <td width="10%" align="center">操作类型</td>
                    <td width="10%" align="center">操作人</td>
                </tr>
            </thead>
            <tbody>
                <tr ms-repeat-item="depList">
                    <td align="center">
                        {{item.StartMonth|truncate(10,'')}}
                    </td>
                    <td align="center">
                        {{item.Assets.BillMoney}}
                    </td>
                    <td align="center">
                        {{item.CurYear+""+(item.CurMonth>9?item.CurMonth:"0"+item.CurMonth)}}
                    </td>
                    <td align="center">
                        {{item.DepreciationValue}}
                    </td>
                    <td align="center">
                        {{item.CurNetWorth}}
                    </td>
                    <td align="center">
                        {{item.AddTime|truncate(10,'')}}
                    </td>
                    <td align="center">
                        {{item.Type}}
                    </td>
                    <td align="center">
                        {{item.AddBy? item.AddBy.FullName:"系统"}}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</noscript>
<style type="text/css">
    .tabtable tr th {height:30px;}
    .tabtable tr td {height:30px;}
    .min200 {min-height: 200px; _height: 200px;}
</style>