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.
|
|
|
|
/**
|
|
|
|
|
* 复制权限按钮弹框文件
|
|
|
|
|
* @description [description]
|
|
|
|
|
* @version 1.0
|
|
|
|
|
* @author yangjinhua
|
|
|
|
|
*/
|
|
|
|
|
define(function(require, exports, module) {
|
|
|
|
|
var Window = require('system/views/pages/window');
|
|
|
|
|
var tpl = require('text!apps/rht/cnt/cnt070101/BatchRenewDate.tpl');
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* [复制权限弹框]
|
|
|
|
|
* @param {[type]} dsData 角色表数据源,用于对角色ComBox进行赋值
|
|
|
|
|
*/
|
|
|
|
|
function BatchRenewDate(dsData) {
|
|
|
|
|
this.options = {
|
|
|
|
|
title: "批量续签",
|
|
|
|
|
content: tpl,
|
|
|
|
|
width: 600,
|
|
|
|
|
height: 199,
|
|
|
|
|
modal: true,
|
|
|
|
|
closed: true,
|
|
|
|
|
closable: true,
|
|
|
|
|
draggable: true,
|
|
|
|
|
maximizable: false,
|
|
|
|
|
resizable: false,
|
|
|
|
|
data: null
|
|
|
|
|
}
|
|
|
|
|
this.dsData = dsData;
|
|
|
|
|
|
|
|
|
|
Window.call(this, this.options);
|
|
|
|
|
}
|
|
|
|
|
inherits(BatchRenewDate, Window);
|
|
|
|
|
|
|
|
|
|
BatchRenewDate.prototype.init = function() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BatchRenewDate.prototype.open = function() {
|
|
|
|
|
Window.prototype.open.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//执行windows窗体上自定义按钮事件
|
|
|
|
|
BatchRenewDate.prototype.customerize = function() {
|
|
|
|
|
var self = this;
|
|
|
|
|
var $newEndDate = this.getElement('.newEndDate');
|
|
|
|
|
|
|
|
|
|
//确定按钮事件
|
|
|
|
|
this.getElement('.btnOK').on('click', function(event) {
|
|
|
|
|
var newEndDate = $newEndDate.datebox('getValue');
|
|
|
|
|
if (self.callback) {
|
|
|
|
|
self.callback(newEndDate);
|
|
|
|
|
}
|
|
|
|
|
self.close();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//取消按钮事件
|
|
|
|
|
this.getElement('.btnCancel').on('click', function(event) {
|
|
|
|
|
self.close();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return BatchRenewDate;
|
|
|
|
|
})
|