阅读:2853 回复:3
Justin
15

帖子

32

跟帖

1013

积分

高级榴莲
高级榴莲

$.MvcSheet.Submit 为什么不能触发提交?

楼主#
更多 发布于:2017-09-16 14:17
        $.MvcSheet.Submit = function () {
          
            if ($.MvcSheetUI.SheetInfo.ActivityCode == "Activity2") {
                var rowCount = $("table[data-datafield='ListBorrowingNew']").find("tr.rows").length;              
                for (var index = 1; index <= rowCount; index++) {
                    $.MvcSheetUI.SetControlValue("ListBorrowingNew.Hid_AppMoney", $.MvcSheetUI.GetControlValue("ListBorrowingNew.AppMoney", index), index);
                    $.MvcSheetUI.SetControlValue("ListBorrowingNew.Hid_BudgetComfromVal", $.MvcSheetUI.GetControlValue("ListBorrowingNew.BudgetComfromVal", index), index);
                }            
            }
            return true;
        }
 $.MvcSheet.Submit=function() {}
怎么无法触发 ?
文档是这样写的function (actionControl, text, destActivity, postValue, groupValue)
fucntion中,还需要加的这些内容是?
Justin
15

帖子

32

跟帖

1013

积分

高级榴莲
高级榴莲
1楼#
发布于:2017-09-16 14:28
$.MvcSheetUI.SetControlValue("ListBorrowingNew.Hid_BudgetComfromVal", $.MvcSheetUI.GetControlValue("ListBorrowingNew.BudgetComfromVal", index), index);

这样赋值也无法给子表的其它数据项赋值。求方法~~



赋值可以成功,但是后台CS代码中的对象,没有获得值。
Justin
15

帖子

32

跟帖

1013

积分

高级榴莲
高级榴莲
2楼#
发布于:2017-09-18 14:33
t156965365:你把框架提交的代码给覆盖掉了.
这一段请写在验证里面事件里面.
//页面验证事件
       $.MvcSheet.Validate = function () {
              if ($.MvcSheetUI.Sheet...
回到原帖
非常感谢~~
游客

返回顶部