惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
B
Blog RSS Feed
Last Week in AI
Last Week in AI
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
雷峰网
雷峰网
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
博客园 - 司徒正美
U
Unit 42
量子位

博客园 - 飞翔的天空

sp.net core部署到iis中出现 HTTP Error 502.5 - Process Failure 的解决办法 aspnet zero Swagger 不出现Authorize按钮的解决办法 Js获取当前日期时间及其它操作 js阿拉伯数字转中文大写 php学习点滴 excel合并单元格内容 EXCEL公式以指定分隔符从右往左截取字符 drupal学习FAQ drupal模块简介 js中三目运算及readonly的解决办法 Zxing中文乱码的简单解决办法 orchard模块编写的错误及其解决办法 orchard文档之-orchard工作原理 orchard文档之-搜索和索引 orchard文档之-更新站点到新的orchard版本 orchard文档之-创建自定义表单 准备把orchard的自己认为重要的文档翻译一遍 orchard文档之-理解内容处理器 orchard文档之-理解数据访问
easyUI MVC3一些注意的东东(4)
飞翔的天空 · 2013-06-20 · via 博客园 - 飞翔的天空

datagrid 只保留两位数字的方法

<table id="FA_AssetDg"  
           toolbar="#ToolBarFA_Asset"  
           rownumbers="true" fitColumns="true" singleSelect="true" pagination="true">  
        <thead>  
        <tr>
            <th field="AssetCode" width="100">
                资产编号
            </th>
           @* <th field="TypeName" width="100">
                资产类别
            </th>*@
            <th field="AssetName" width="100">
                资产名称
            </th>
            <th field="DepreciateStatus" width="100">
                折旧状态
            </th>
            <th field="AssetValue" width="100">
                资产原值
            </th>
             <th field="GetDate" width="100">
                取得日期
            </th>
          
             <th field="ExpectLeftValue" width="100" formatter="formatStatus">
                预计残值
            </th>
             <th field="MonthsDepreciateValue" width="100" formatter="formatStatus">
                月折旧额
            </th>
              <th field="SumDepreciateMonths" width="100">
                已提折旧月数
            </th>
              <th field="SumDepreciateValue" width="100" formatter="formatStatus">
                累计折旧
            </th>
              <th field="LeftValue" width="100"  formatter="formatStatus">
                账面净值
            </th>

           
            <th field="AssetUseMonths" width="100">
                使用年限(月份)
            </th>
         
            <th field="SalvageValue" width="100">
                残值率
            </th>
            <th field="UsedBranch" width="100">
                使用部门
            </th>
            <th field="User" width="100">
                保管人
            </th>
         
        </tr>
        </thead>
        </table>
formatStatus 方法:
    function formatStatus(value, row) {
        return parseFloat(value,10).toFixed(2);
    }

posted @ 2013-06-20 11:11  飞翔的天空  阅读(276)  评论()    收藏  举报