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

推荐订阅源

Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
博客园_首页
S
SegmentFault 最新的问题
H
Help Net Security
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
量子位
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
B
Blog
月光博客
月光博客
博客园 - 聂微东
Vercel News
Vercel News
罗磊的独立博客
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
I
Intezer
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
C
Check Point Blog
AWS News Blog
AWS News Blog
C
Cisco Blogs
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
S
Security Affairs
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hacker News: Front Page
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog

博客园 - 飞翔的天空

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)  评论()    收藏  举报