function updateRow() {
var form = new mini.Form("editForm1");
var o = form.getData();
form.validate();
total();
if (form.isValid() == false) return;
var data = grid.getChanges();
var json = mini.encode([o]);
grid.loading("更新中,请稍后......");
$.ajax({
url: "GoodsPurchaseBus.aspx?method=EditGoodsDetails&PurchaseOrdersNo=" + OrdersNo,
data: { data: json },
cache: false,
success: function (text) {
function zongji() {
var at = mini.get("AmountTo");
var sum = 0;
for (var i = 0; i < grid.getData().length; i++) {
sum = parseFloat(sum) + parseFloat(grid.getRow(i).FigureOut);
}
at.setValue(sum);
}
我在success的grid.reload()中加zongji();得出的是未修改的
在updateRow方法的最后一句加zongji();得出的结果还是未修改的。请版主帮我看看吧作者: niko 时间: 2012-12-13 17:10:53