F7操作前校验

   checkBeforeF7click: function () {
        var self = this;
        var fields = ["entrys.jobLevel", "entrys.jobGrade"];
        for (var i = 0; i < fields.length; i++) {
            var field = fields[i];
            self.getField(field).shrPromptBox("option", {
                verifyBeforeOpenCallback: function (event) {
                    var hrOrgUnitF7Value = self.getField("hrOrgUnit").shrPromptBox("getValue");
                    if (!hrOrgUnitF7Value || hrOrgUnitF7Value.id == "") {
                        shr.showError({
                            message: jsBizMultLan.emp_shrAffairBillBaseHrManEdit_i18n_8,
                            hideAfter: 6
                        });
                        return false;
                    }
                }
            });
        }
    },

 

上一篇:Arcpy学习笔记(五)-列出数据


下一篇:C#反射--基于反射的拷贝函数