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

推荐订阅源

S
Security @ Cisco Blogs
H
Hacker News: Front Page
P
Privacy International News Feed
N
News and Events Feed by Topic
T
Threatpost
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
K
Kaspersky official blog
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CERT Recently Published Vulnerability Notes
L
Lohrmann on Cybersecurity
Jina AI
Jina AI
P
Proofpoint News Feed
AI
AI
雷峰网
雷峰网
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 叶小钗
Webroot Blog
Webroot Blog
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
罗磊的独立博客
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
S
Security Affairs
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
月光博客
月光博客
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Securelist
W
WeLiveSecurity
T
Troy Hunt's Blog
A
Arctic Wolf
博客园 - 司徒正美

博客园 - 飞翔的天空

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