mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
routine update
This commit is contained in:
parent
cf0dbf16a3
commit
dc10cc57ad
@ -12,22 +12,26 @@
|
||||
// <summary>maingrid基类</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
function Grid() {
|
||||
|
||||
this.selectObjs = function () {
|
||||
var ids = this.maingrid.jqGrid('getGridParam', 'selarrrow');
|
||||
if (ids.length == 0) {
|
||||
return null;
|
||||
}
|
||||
var ret = new Array();
|
||||
var maingrid = this.maingrid;
|
||||
$(ids).each(function () {
|
||||
var obj =maingrid.jqGrid('getRowData', this);
|
||||
ret.push(obj);
|
||||
});
|
||||
return ret;
|
||||
};
|
||||
}
|
||||
function Grid() { }
|
||||
|
||||
Grid.prototype.selectObjs = function () {
|
||||
var ids = this.maingrid.jqGrid('getGridParam', 'selarrrow');
|
||||
if (ids.length == 0) {
|
||||
return null;
|
||||
}
|
||||
var ret = new Array();
|
||||
var maingrid = this.maingrid;
|
||||
$(ids).each(function () {
|
||||
var obj = maingrid.jqGrid('getRowData', this);
|
||||
ret.push(obj);
|
||||
});
|
||||
return ret;
|
||||
};
|
||||
|
||||
//选择多行对象
|
||||
Grid.prototype.getSelectedMany = function () {
|
||||
return this.selectObjs();
|
||||
};
|
||||
|
||||
//选择单行对象
|
||||
Grid.prototype.getSelectedObj = function () {
|
||||
@ -39,10 +43,7 @@ Grid.prototype.getSelectedObj = function () {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
//选择多行对象
|
||||
Grid.prototype.getSelectedMany = function () {
|
||||
return this.selectObjs();
|
||||
};
|
||||
|
||||
//返回选择多行的属性JSON,默认选择id属性,如果选择其他属性,可重写
|
||||
Grid.prototype.getSelectedProperties = function (propName) {
|
||||
var selected = this.selectObjs();
|
||||
|
@ -36,7 +36,7 @@
|
||||
<span class="red">OpenAuth</span>
|
||||
<span class="white" id="id-text2">.Net</span>
|
||||
</h1>
|
||||
<h4 class="blue" id="id-company-text">© Hifo group</h4>
|
||||
<h4 class="blue" id="id-company-text">© yubaolee</h4>
|
||||
</div>
|
||||
|
||||
<div class="space-6"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user