客户端实现在UltraWebGrid中对某行数据进行自动计算
来源:互联网 发布:淘宝用户名是什么 编辑:程序博客网 时间:2024/05/16 19:01
function UltraWebGrid1_AfterCellUpdate(gridName, cellId){
//Add code to handle your event here.
var oRow=igtbl_getActiveRow(gridName);
var col = igtbl_getColumnById(cellId)
if (col.Key=="Quantity"||col.Key=="Price"||col.Key=="TaxRate")
{
Quantity = oRow.getCellFromKey("Quantity").getValue();
Price = oRow.getCellFromKey("Price").getValue();
TaxRate = oRow.getCellFromKey("TaxRate").getValue();
if (Quantity==null) Quantity = 0;
if (Price==null) Price = 0;
if (TaxRate==null) TaxRate = 0 ;
oRow.getCellFromKey("Amount").setValue(Quantity*Price*(100+TaxRate)/100);
}
}// -->
//Add code to handle your event here.
var oRow=igtbl_getActiveRow(gridName);
var col = igtbl_getColumnById(cellId)
if (col.Key=="Quantity"||col.Key=="Price"||col.Key=="TaxRate")
{
Quantity = oRow.getCellFromKey("Quantity").getValue();
Price = oRow.getCellFromKey("Price").getValue();
TaxRate = oRow.getCellFromKey("TaxRate").getValue();
if (Quantity==null) Quantity = 0;
if (Price==null) Price = 0;
if (TaxRate==null) TaxRate = 0 ;
oRow.getCellFromKey("Amount").setValue(Quantity*Price*(100+TaxRate)/100);
}
}// -->
- 客户端实现在UltraWebGrid中对某行数据进行自动计算
- 在SQL存储过程中对表进行多行数据更新,插入
- 在客户端使用javascript遍历UltraWebGrid中每个单元格
- 在Windows cmd中计算行数
- 在客户端为UltraWebGrid增加行
- 在客户端删除UltraWebGrid的所有行
- 在客户端阻止删除UltraWebGrid中的行
- UltraWebGrid根据CheckBox在客户端删除行
- 如何在shell中对浮点数进行计算?
- 采用Jquery,在table上实现对行的单击、双击、返回选中行数据的功能,可作为GridView控制客户端的扩展
- 在客户端使用javascript遍历Infragistics NetAdvantage UltraWebGrid中每个单元格的内容
- GridView中存在多行数据,如何获取数据表主键值以对某一整行数据进行编辑
- 在jasperreport中使用applet进行客户端打印以及jre在局域网中的自动安装
- 对excel里一列5000行数据进行以50行为一组进行分组的实现方法
- 在UltraWebGrid中增加CheckBox列
- 在UltraWebGrid单元格中绑定dropdownlist
- 在UltraWebGrid中验证填入数据
- 在jQuery EasyUI中实现对DataGrid进行编辑
- NetTiers中内置对象及关系
- ERP项目规划时的六大项禁忌
- 搜索引擎技巧让您成为黑客
- asp.net 2.0里动态访问meta标记
- VS2005下如何用预编译命令来发布站点
- 客户端实现在UltraWebGrid中对某行数据进行自动计算
- 使用SkinMagic美化VC界面
- 最近想要看看的书
- wxwidgets DEBUG 编译错误解决.ld.exe: cannot find -lwxmsw28ud
- 回家,参加表姐婚礼
- Recite Machine设计记录——week.01
- UltraWebGrid使用指南
- CIO需留心“隐形决策人”
- 不全力以赴就没乐趣