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

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

博客园 - CsharpFish

Sql2005 PIVOT运算符的操作 Lodop使用之WEB套打程序开发 jquery插件treeTable Asp.net 后台添加CSS、JS、Meta标签的写法 DataGridView拖动换行 CodeSmith----SchemaExplorer类结构详细介绍 - CsharpFish - 博客园 js request 应用举例 背景图片随窗口拉伸 WebBrowser网页局部打印 - CsharpFish - 博客园 js日期控件-梅花雨 利用VML生成柱状图和饼图 小小个人消费管理系统(已完善) GridView分页用户自定义控件 DbType与OleDbType 添加修改后返回刷新查询页面 asp.net页面传值(transfer Context.Handler) GridViev皮肤(Skin&CSS) JavaScript验证控件并阻止表单提交 GridView自定义分页存储过程
js操作Table绑定DataSet
CsharpFish · 2008-08-29 · via 博客园 - CsharpFish

    <table id="proProcess" border="1" cellpadding="0" cellspacing="0" style="width: 85%;
        text-align: center"
 class="inputframemain1">

        
<tr id="depName">
            
<td style="height: 19px">
            
</td>
        
</tr>
        
<tr id="inMonth">
            
<td style="width: 100px; text-align: left">
                
&nbsp;<div style="display: inline; height: 10px; background-color: #58729c;">
                    
&nbsp;&nbsp;</div>
                
&nbsp;本月工程收入</td>
        
</tr>
        
<tr id="inYear">
            
<td style="width: 100px; text-align: left">
                
&nbsp;<div style="display: inline; height: 10px; background-color: #da6e67;">
                    
&nbsp;&nbsp;</div>
                
&nbsp;累计工程收入</td>
        
</tr>
        
<tr id="rate">
            
<td style="width: 100px; text-align: left">
                
&nbsp;累计收入百分比</td>
        
</tr>
    
</table><script language="javascript" type="text/javascript">
    
var d = document.getElementById("depName");
    
var m = document.getElementById("inMonth"
);
    
var y = document.getElementById("inYear"
);
    
var r = document.getElementById("rate"
);
    
var hdMonth = document.getElementById("hdMonth"
);
    
function
 ShowTable()
    {
        
var ds =
 MonthlyReportForm_ProProcess.GetData(hdMonth.value).value;
        
for(var i=0; i<ds.Tables[0].Rows.length; i++
)
        {
            
var nCell = d.insertCell(i+1
)
            nCell.innerHTML 
= ds.Tables[0
].Rows[i].Depname;
            nCell 
= m.insertCell(i+1
);
            nCell.innerHTML 
= ds.Tables[0
].Rows[i].IncomeMonth;
            nCell 
= y.insertCell(i+1
);
            nCell.innerHTML 
= ds.Tables[0
].Rows[i].IncomeYear;
            nCell 
= r.insertCell(i+1
);
            nCell.innerHTML 
= ds.Tables[0
].Rows[i].FinishRate;
        }
    }
    
</script>