You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.5 KiB

4 years ago
define(function(require, exports, module) {
let Window = require('system/views/pages/window');
let tpl = require('text!apps/edp/frs/sys010102/SetSysRefresh.tpl');
let BaseBiz = require('apps/rht/base/rhtBiz');
let rhtComm = require('apps/rht/comm/rhtComm');
let constValue = require('./const.js');
let service = require('./sys010102service');
function SetSysRefresh(args) {//currow
this.options = {
title: "设置刷新条件",
content: tpl,
width: 320,
height: 220,
modal: true,
closed: true,
closable: true,
draggable: true,
maximizable: false,
resizable: false,
data: null,
getaccDate:null,
getTime:null,
getisAutofresh:null
}
//this.masterCurRow = currow;
this.args = args;
Window.call(this, this.options);
}
inherits(SetSysRefresh, Window);
SetSysRefresh.prototype.init = function() {
}
SetSysRefresh.prototype.open = function() {
Window.prototype.open.call(this);
}
//执行windows窗体上自定义按钮事件
SetSysRefresh.prototype.customerize = function() {
let self = this;
let rows = null;
// let accDate = $accDate.value;
//确定按钮事件
this.getElement('.btnOK').on('click', function(event) {
let $isAutoRefreshCheckbox = self.getElement('#frs-sys02-AutoRefresh');
let $refreshRate = self.getElement('#frs-sys02-RefreshRateTxt');
let refreshRate = $refreshRate.val();
// let $accDate = self.getElement('#frs-sys02-AccDateBox');
// let accDate = $accDate.val();
let isAutofreshCheckbox = $isAutoRefreshCheckbox.prop('checked');
constValue.setIsAuto(isAutofreshCheckbox);
constValue.setiTime(refreshRate);
// constValue.setAccDate(accDate);
// getaccDate=constValue.getAccDate();
getTime=constValue.getiTime();
getisAutofresh=constValue.getIsAuto();
if (self.args.callback) {
self.args.callback(getTime,getisAutofresh);
}
self.close();
}
);
//取消按钮事件
this.getElement('.btnCancel').on('click', function(event) {
self.close();
});
}
return SetSysRefresh;
})