一个显示Grid的VBScript对象
来源:互联网 发布:php的等于符号 编辑:程序博客网 时间:2024/06/11 02:08
一个显示Grid的VBScript对象
是根据MS提供的代码修改而成,目前还不支持编辑,可以排序、查询、分页显示
<%@ Language=VBScript %>
<% Option Explicit %>
<%
Class classDataGrid
Private m_strSQL
Private m_strConn
Private m_strRowColor1
Private m_strRowColor2
Private m_strMode
Private m_strProcessPage
Private m_strTitle
Private m_strRSName
Private m_strFindFields
Public Property Get SQL()
SQL = m_strSQL
End Property
Public Property Let SQL(strSQL)
m_strSQL = strSQL
End Property
Public Property Get Conn()
Conn = m_strConn
End Property
Public Property Let Conn(strConn)
m_strConn = strConn
End Property
Public Property Get RowColor1()
If IsNull(m_strRowColor1) Or Len(m_strRowColor1) = 0 Then
RowColor1 = "#ffffff"
Else
RowColor1 = m_strRowColor1
End If
End Property
Public Property Let RowColor1(strRowColor1)
m_strRowColor1 = strRowColor1
End Property
Public Property Get RowColor2()
If IsNull(m_strRowColor2) Or Len(m_strRowColor2) = 0 Then
RowColor2 = "#00ffff"
Else
RowColor2 = m_strRowColor2
End If
End Property
Public Property Let RowColor2(strRowColor2)
m_strRowColor2 = strRowColor2
End Property
Public Property Get Mode()
If IsNull(m_strMode) Or Len(m_strMode) = 0 Then
Mode = "View"
Else
Mode = m_strMode
End If
End Property
Public Property Let Mode(strMode)
If strMode <> "View" And strMode <> "Edit" Then
Response.Write ("模式错误——只允许使用View和Edit<br>")
Response.End
Else
m_strMode = strMode
End If
End Property
Public Property Get ProcessPage()
ProcessPage = m_strProcessPage
End Property
Public Property Let ProcessPage(strProcessPage)
m_strProcessPage = strProcessPage
End Property
Public Property Get Title()
If IsNull(m_strTitle) Or Len(m_strTitle) = 0 Then
Title = "Data Grid"
Else
Title = m_strTitle
End If
End Property
Public Property Let Title(strTitle)
m_strTitle = strTitle
End Property
Public Property Get RSName()
If IsNull(m_strRSName) Or Len(m_strRSName) = 0 Then
RSName = "Grid"
Else
RSName = m_strRSName
End If
End Property
Public Property Let RSName(strRSName)
m_strRSName = strRSName
End Property
Public Property Get FindFields()
FindFields = m_strFindFields
End
- 一个显示Grid的VBScript对象
- VBScript主要的对象
- Extjs grid 对象为空时的显示问题
- Extjs grid 对象为空时的显示问题
- 一个自定义的可以分页,排序,扩展显示grid控件
- VBScript-RegExp对象的详细用法
- VBScript-RegExp对象的详细用法
- VBscript 中 FileSystemObject对象的使用
- VBScript/QTP 的常用COM对象列表
- DHTMLX做一个Grid列表显示数据
- vbscript一个用于验证邮箱的函数
- 一个VB和VBScript的小差别
- 推荐一个学习VBScript的网站
- [QTP] vbscript中如何引用一个COM对象
- ExtJs: Grid的一个BUG
- 一个包含comboBox的grid,将comboBox中的value显示在输入框中
- UI-Grid表格元素中多个空格显示为一个空格的解决办法
- 一个神奇的ext grid错误 行36 字符1 对象不支持此方法
- alignof operator
- 美国极进与上海洲思首次完美合展
- JAVA开发常用工具
- . 我要让我的用户向指定的目录上载文件, 把 包含在表格内
- MySQL与MongoDB对比
- 一个显示Grid的VBScript对象
- Android中如何使用JUnit进行单元测试
- IOS管理文件和目录
- 用ASP做一个TOP COOL的站内搜索
- Oracle中把一张表查询结果插入到另一张表中
- Java 中的语法糖 (Syntactic Sugar)
- android 4.2.1短信接收以及应用接收顺序
- 怎么用命令行执行jar文件
- 'libxml/tree.h' file not found