define(function (require, exports, module) { //引入业务类基类 let BaseBiz = require('apps/rht/base/rhtBiz'); let rhtService = require('../../base/rhtService'); let rhtComm = require('apps/rht/comm/rhtComm'); //引入业务服务 let Service = require('./sku080207service'); /** * 定义业务类对象 * @param vm 界面相关ViewModule */ function Biz(vm) { //继承第一步,构造继承 BaseBiz.call(this, vm); } //继承第二步,方法继承 inherits(Biz, BaseBiz); Biz.prototype.initCompleted = function () { this.super('initCompleted'); this.isEtpCodeRule = rhtComm.getRhtOptionValue('*','SUPP','IS_ETP_CODE_RULE','0'); }; //控制主界面按钮状态 Biz.prototype.getOpEnabled = function (opCode) { let self = this; let isOk = this.super('getOpEnabled', opCode); if (!isOk) return false; let curRow = this.dsMaster.currentRow; if (opCode == 'setstatus') { } if (opCode == 'setpara') { } return true; }; //按钮事件控制 Biz.prototype.doOp = function (opCode) { let self = this; if (opCode == 'setstatus') { let ds = self.dsMaster; this.onSetStatus(self, ds); } if (opCode == 'setpara') { let ds = self.dsMaster; this.onSetPara(self, ds); } }; //按钮事件 Biz.prototype.onSetStatus = function (biz, ds) { let oldRow = ds.currentRow; return true; }; Biz.prototype.onSetPara = function (biz, ds) { let oldRow = ds.currentRow; return true; }; return Biz; });