define(function (require, exports, module) { let BaseBiz = require('apps/rht/base/rhtBiz'); let Service = require('./sys010107service'); let runOrgRpt = require('./addwindow'); let queryTpl = require('text!./custom-built-query.tpl') let queryWindow = require("system/views/pages/querywindow/querywindow"); let multiWindow = require("system/views/pages/multiwindow/multiwindow"); function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); Biz.prototype.getCustomBuiltQuery = function() { return queryTpl }; //单据删除前处理 需要调用过程 Biz.prototype.beforeDelete = function () { let masterRow = this.dsMaster.currentRow; let sJobCode = masterRow ? TypeUtil.toString(masterRow['JobCode']) : ''; let sGenType = masterRow ? TypeUtil.toString(masterRow['GenType']) : ''; if (sJobCode.length <= 0){ masterRow.setColumnError("JobCode", '请选择待删除的系统作业!'); return false; } if (sGenType == "1") { masterRow.setColumnError("JobCode", '系统预置任务,不允许删除!'); return false; } let ret= Service.getSlideMenuData("beforeDelete","delete",sJobCode,"","","",""); if (ret.result !== 1) { masterRow.setColumnError('JobCode', ret.message); return false; } return this.super('beforeDelete'); }; //保存前校验 Biz.prototype.beforeSave = function () { let masterRow = this.dsMaster.currentRow; if(masterRow){ let arrBody = new Array(); for(let i=0;i