阅读:1893
回复:3
|
循环子表问题
|
||
1楼#
发布于:2019-02-26 10:05
|
|
2楼#
发布于:2019-02-26 11:17
武汉技术支持团队:这个都是JQuery的语法,多看一下http://wiki.h3yun.com/已经搞定了 $.MvcSheet.Loaded=function(sheetInfo) { alert("弹出提示框测试"); //源头TravelExpensesList //源头hexiaoyufukuan / zhifuqingdan var zhifuqingdanLength = $("table[data-datafield='zhifuqingdan']").find("tr.rows").length; $("table[data-datafield='hexiaoyufukuan']").find("tr.rows").each(function () { var row = $(this).attr("data-row"); if (row > zhifuqingdanLength) { $("#Control23").SheetUIManager()._AddRow(); } $.MvcSheetUI.SetControlValue("zhifuqingdan.yuedingfukuanjine", $.MvcSheetUI.GetControlValue("hexiaoyufukuan.yufujine", row), row); $.MvcSheetUI.SetControlValue("zhifuqingdan.shenqingfukuanjine", $.MvcSheetUI.GetControlValue("hexiaoyufukuan.hexiaojine", row), row); $("input[data-datafield='zhifuqingdan.yuedingfukuanjine']").attr("disabled", "disabled"); $("input[data-datafield='zhifuqingdan.shenqingfukuanjine']").attr("disabled", "disabled"); }); } |
|