快过年了,给大家拜个早年.做了个jQgrid的DEMO。哈哈。

 

 主要运用MVC 和 jQgrid(后期会加上Nhibernate 以及spring.Net)

环境  W-XP SP3+ VS2008SP1 + Oracle.

准备工作:

下载:

1、jquery.jqGrid-3.8.1.zip;

2、jquery-ui-1.8.6.custom2.zip;(这个样式可随便下载)

以上2个包以及源码在附件当中


打开ORACLE 创建数据库

 

--Create the province table and add some data
create table province
(
ProvinceID 
int,
ProvinceCode 
varchar(20),
ProvinceName 
varchar(20),
primary key (ProvinceID)
);
select * from province;

insert into province
select 1001 , 1001,'北京' from dual
union all
select 1002 , 1002,'天津' from dual
union all
select 1003 , 1003,'重庆' from dual
union all
select 1004 , 1004,'四川' from dual
union all
select 1005 , 1005,'辽宁' from dual;
commit;

----Create the city table and add some data
Create table city
(
CityID 
int,
CityCode 
varchar(20),
CityName 
varchar(20),
ProcinceID 
int,
primary key (CityID)
);

insert into city 
select 101 , 101,'北京市',1001 from dual
union all
select 102 , 102,'朝阳',1001 from dual
union all
select 103 , 103,'海淀',1001 from dual
union all
select 104 , 104,'昌平',1001 from dual
union all
select 105 , 105,'天津市',1002 from dual
union all
select 106 , 106,'重庆市',1003 from dual
union all
select 107 , 107,'南坪',1003 from dual
union all
select 108 , 108,'李家沱',1003 from dual
union all
select 109 , 109,'鱼洞',1003 from dual
union all
select 110 , 110,'界石',1003 from dual
union all
select 111 , 111,'成都市',1004 from dual
union all
select 112 , 112,'天府软件园',1004 from dual
union all
select 113113,'华阳镇',1004 from dual
union all
select 114 , 114,'沈阳市',1005 from dual
union all
select 115 , 115,'大连市',1005 from dual;
commit;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-01-13
猜你喜欢
  • 2021-07-20
  • 2021-10-10
  • 2021-11-14
  • 2021-11-23
  • 2022-02-04
  • 2022-01-01
相关资源
相似解决方案