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