阅读:2826
回复:3
|
$.MvcSheet.Submit 为什么不能触发提交?
$.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中,还需要加的这些内容是? |
1楼#
发布于:2017-09-16 14:28
$.MvcSheetUI.SetControlValue("ListBorrowingNew.Hid_BudgetComfromVal", $.MvcSheetUI.GetControlValue("ListBorrowingNew.BudgetComfromVal", index), index);
这样赋值也无法给子表的其它数据项赋值。求方法~~ 赋值可以成功,但是后台CS代码中的对象,没有获得值。 |
|
2楼#
发布于:2017-09-18 07:58
你把框架提交的代码给覆盖掉了.
这一段请写在验证里面事件里面. //页面验证事件 $.MvcSheet.Validate = function () { if ($.MvcSheetUI.SheetInfo.ActivityCode == "Activity2" && this.Action == "Submit") { //TODO } } |
|
3楼#
发布于:2017-09-18 14:33
t156965365:你把框架提交的代码给覆盖掉了.非常感谢~~ |
|