如何写DataGrid(JAVA)|快速开发|开发平台|web开发|工作流工具
2011-06-02 11:35
811 查看
如何写DataGrid(JAVA)|快速开发|开发平台|web开发|工作流工具 <%@ page language="java" import="java.util.*"%> <%@ page contentType="text/html;charset=gb2312"%> <%@ page import="java.io.IOException" %> <%@ page import="java.sql.SQLException" %> <%@ page import="java.text.DateFormat" %> <%@ page import="java.text.ParseException" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.egosystems.balasbrid.main" %> <%@ page import="com.egosystems.apputil.AppInfo" %> <%@ page import="com.egosystems.apputil.Const" %> <%@ page import="com.egosystems.apputil.Utility" %> <%@ page import="com.egosystems.dbcore.DBGetResult" %> <%@ page import="com.egosystems.dbcore.DataTable" %> <%@ page import="com.egosystems.dbcore.DataTable.DataRow" %> <%@ page import="com.egosystems.taglib.DataGrid" %> <%@ page import="com.egosystems.taglib.Paginate" %> <%@ page import="com.egosystems.dbcore.ParameterDirection" %> <%@ page import="com.egosystems.dbcore.Parm_Struct" %> <%@ page import="com.egosystems.taglib.TreeView" %> <%@ page import="com.egosystems.webcore.BasePage" %> <%@ taglib uri="/WEB-INF/EgoTag.tld" prefix="EGO"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%! private DataGrid DataGrid = null; //申明私有对象DataGrid %> <% DBGetResult dbgr = new DBGetResult(); dbgr.openConn(); //连接数据库 DataTable dataTable = null; DataGrid1 = new DataGrid(); //实例化DataGrid String Sql = "select 支局编号,支局名,guid from 支局信息"; //定义SQL语句 dataTable = dbgr.GetDataTable(Sql); //执行SQL语句 DataGrid.DataSource = dataTable; //DataGrid.ColumnIsHeader = false; DataGrid.ShowColumns.put("支局名", "true"); DataGrid.ShowColumns.put("guid", "false"); DataGrid.ShowColumns.put("支局编号", "false"); DataGrid.HeaderStyle = "display:none;font-size: 12px;line-height: 22px"; DataGrid.Style = "font-size: 12px;line-height: 22px;border:0;"; DataGrid.hasDatail = false; //隐藏表头 DataGrid.ShowCheckBox=false; //隐藏单选按钮 DataGrid.ItemDataBound = DataGrid.new ItemDataBoundEvent(this,"DataGridItemDataBound"); //调用方法 DataGrid.Type = Const.DataGridType.Normal; DataGrid.Border=0; //隐藏边框 DataGrid.DataBind(); request.setAttribute("DataGrid", DataGrid); dbgr.closeConn(); //关闭数据库连接 %> <%! public void DataGridItemDataBound(Object Sender, DataGrid.Item EventArg) throws Exception //有new标签的链接 { DataTable dt = (DataTable) EventArg.ParentRow.Parent.DataSource; String titlename = EventArg.Text; String Guid = ""; String QYCodeID = ""; if (EventArg.ParentRow.DataRowIndex != -1) { Guid = dt.Rows[EventArg.ParentRow.DataRowIndex].Item("guid").ToString(); QYCodeID = dt.Rows[EventArg.ParentRow.DataRowIndex].Item("支局编号").ToString(); } titlename = "<a href=\"javascript:parent.MapFrame.LocateToUser('"+QYCodeID+"','"+Guid+"')\"><font color=\"#000000\">" + titlename + "<font></a><img src=\"map_images/new-061.gif\" width=\"16\" height=\"10\">"; EventArg.Text = titlename; } %> <html> <head> <title></title> <script src="http://www.cnblogs.com/js/DataGrid.js"></script> </head> <body> <input type="hidden" id="cood" name="cood" value="<%=cood%>"> <span id="htmls"><EGO ataGrid dataGridClass="DataGrid"/></span> </body> </html> | |
快速开发工具FIX ES2007 下载www.founderfix.com |
相关文章推荐
- 如何写DataGrid(JAVA)|快速开发|开发平台|web开发|工作流工具
- DataCenter导出功能|快速开发工具|soa中间件|bpm工作流|基础架构|web表单|java报表
- DataCenter导出功能|快速开发工具|soa中间件|bpm工作流|基础架构|web表单|java报表
- Java Web开发平台 WebBuilder访谈 (Web开发工具,Web开发框架,Web快速开发)
- Java Web应用快速开发平台-OpenJWeb v1.2学习版推广方案
- OpenJWeb(v1.0) Java Web快速开发平台功能清单
- 一款基于Java的web快速开发平台,很给力!
- 云平台编程与开发(四):如何将已有的java Web项目部署到云平台?
- 低成本、高效率的Java Web应用快速开发利器-OpenJWeb快速开发平台1.8
- 低成本、高效率的Java Web应用快速开发利器-OpenJWeb快速开发平台1.8
- 如何利用NB代码生成工具和NBear框架,快速开发WEB项目
- java web 快速开发工具-捷兔
- WEB应用 信息管理系统 数据分析展示系统 OA办公工作流 快速构建与开发平台
- 如何request乱码翻译(JAVA)_JAVA开发平台_JAVA快速开发
- OpenJWeb(1.8) Java Web应用快速开发平台
- Java web自定义标签按钮级别权限控制完美诠释(jplogic 快速开发平台)
- OpenJWeb2.61 Java Web应用快速开发平台全部开源公告
- 快速开发平台的报表工具如何自定义页面宽和高?
- 关于Web快速开发平台ES2007java版本的DataCenter功能(导出)
- JeeFast是一款基于SpringBoot+Mybatis-Plus+Bootstrap+Vue搭建的JAVA WEB快速开发平台