09 2011 档案

摘要:View Code Ext.onReady(function(){ Ext.QuickTips.init(); //顶部工具栏 var tbar=[{ id:'btnAdd', text:'新增', tooltip:'新增', iconCls:'icon-add', handler: showaddWindows }, '-', { text:'修改', handler: showed... 阅读全文
posted @ 2011-09-20 17:01 net 学习网 阅读(136) 评论(0) 推荐(0)
摘要:Ext.onReady(showSampleInfo) function showSampleInfo() { var jReader = new Ext.data.JsonReader({ root : 'data' }, [{ name : 'hca_art_title', mapping : 'hca_art_title', type : 'string' ... 阅读全文
posted @ 2011-09-20 16:14 net 学习网 阅读(282) 评论(0) 推荐(0)
摘要:var newwin;function showAddPanel(){ newwin = new Ext.Window({ xtype: 'window', title: "添加数据", modal: 'true', width:620, height: 435, closeAction:'hide', items: addForm, ... 阅读全文
posted @ 2011-09-15 15:26 net 学习网 阅读(670) 评论(0) 推荐(0)
摘要:一、属性 plain:布尔类型,true表示强制与背景色保持协调,默认值为false。 resizable:布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 maxinizable:布尔类型,true表示显示最大化按钮,默认值为false。 maximized:布尔类型,true表示显示窗体时将窗体最大化,默认值为false。 closable:布尔类型,true表示显示关闭按钮,默认值为true。 bodyStyle:与边框的间距,如:bodyStyle:"padding:3px"。 buttonAlign:窗体中button的对齐方式(left、c 阅读全文
posted @ 2011-09-14 16:26 net 学习网 阅读(3235) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;using System.Text;public partial class admin_json_json_grid : System.Web.UI.Page { protected void Page_Load(obj... 阅读全文
posted @ 2011-09-14 15:43 net 学习网 阅读(577) 评论(1) 推荐(0)
摘要:<%@ WebHandler Language="C#" Class="Handler" %>using System;using System.Web;using System.Collections;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Text;public class Handler : IHttpHandler { public void ProcessRequest (HttpContext con 阅读全文
posted @ 2011-09-14 15:40 net 学习网 阅读(494) 评论(0) 推荐(0)
摘要:function fn(){ //顶部工具栏 var tbar=[{ id:'btnAdd', text:'新增', tooltip:'新增', iconCls:'ico_add', handler: showAddPanel }, '-', { text:'查询', // tooltip:'查询', iconCls:'ico_search' }, '-', { tex... 阅读全文
posted @ 2011-09-14 15:29 net 学习网 阅读(172) 评论(0) 推荐(0)
摘要:1 //为右键菜单添加事件监听器 2 grid.addListener('rowcontextmenu', rightClickFn); 3 var rightClick = new Ext.menu.Menu({ 4 id:'rightClickCont', 5 items: [ 6 { 7 id: 'rMenu1', 8 handler: showAddPanel, 9 iconCls:'ico_add',10 text: '添加数据', 11 ... 阅读全文
posted @ 2011-09-14 14:24 net 学习网 阅读(2956) 评论(0) 推荐(0)
摘要:create PROC [dbo].[sp_Page] /**//* nzperfect [no_mIss] 高效通用分页存储过程(双向检索) 敬告:适用于单一主键或存在唯一值列的表或视图 ps:Sql语句为8000字节,调用时请注意传入参数及sql总长度不要超过指定范围 */@TableName VARCHAR(200), --表名 @FieldList VARCHAR(2000), --显示列名,如果是全部字段则为* @PrimaryKey VARCHAR(100), --单一主键或唯一值键 @Where VARCHAR(2000), --查询条件 不含'where'字符, 阅读全文
posted @ 2011-09-14 13:59 net 学习网 阅读(135) 评论(0) 推荐(0)
摘要:现在学一下常用的存储过程的语法,只要花一点点时间学习下,就能用存储过程实现很复杂的功能,可以少写很多代码。为了方便说明,数据库使用SQL Server的示例数据库,Northwind和pubs,如果SQL Server中没有的话,可以按下面的方法安装下面开始学T-SQL的语法一.注释-- 单行注释,从这到本行结束为注释,类似C++,c#中///* … */ 多行注释,类似C++,C#中/* … */二.变量(int, smallint, tinyint, decimal,float,real, money ,smallmoney, text ,image, char, varchar。。。。。 阅读全文
posted @ 2011-09-13 21:13 net 学习网 阅读(426) 评论(0) 推荐(0)
摘要:---判断是否存在存储过程if exists( select name from sysobjects where name='proc_name' ) drop proc proc_namego--if exists:判断是否存在--drop proc : 删除存储过程,后面接存储过程名称,名称不用引起来--create proc: 创建存储过程,后面接存储过程名称,名称不用引起来--@parameter varchar(20): 参数,在执行存储过程的时候需要传入的参数,这里是字符类型,如果有多个参数的话,除了最后一个参数,其他的参数后面需要加逗号(英文状态),如果不需要传 阅读全文
posted @ 2011-09-13 20:49 net 学习网 阅读(561) 评论(0) 推荐(0)