网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 大学论文导航 设计下载 最新论文 下载排行 原创论文
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 论文模板 > 计算机论文 > 正文

基于 B/S 架构的中小型电子政务应用系统的研究

来源:http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 发布时间: 09/10/24

  需要论文,联系我们qq:3710167


  4.关键技术实现
  4.1  数据库连接
  数据库连接采用统1的入口,在 web.config 里面进行配置如下:
  <appSettings>
  <add key="ConnectionString" value="data source=127.0.0.1;initial catalog=Archives_JG_DB;persist security info=False;user id=sa;password=" />
  </appSettings>
  并且在业务逻辑层加入 DBHelper.cs 类,所有类必须从该类派生:
  using System;
  using System.Data;
  using System.Data.SqlClient;
  namespace Archives.ArchivesData
  {          /// <summary>
  ///  数据库基类,数据层所有类都是继承自此类
  /// </summary>
  public class DBHelper
  {      public DBHelper()
  { }
  /// <summary>
  ///  获取数据库连接字符串
  /// </summary>
  /// <returns>返回未打开的conn</returns>
  public SqlConnection GetConnection()
  {      SqlConnection conn=new SqlConnection();
  try{   conn.ConnectionString=System.Configuration.ConfigurationSettings.AppSettings
  ["ConnectionString"].ToString();
  return conn;
  }
  catch{
  return conn;
  }
  }
  }
  }
  由于 ConnectionString 可能会透露数据库名称和密码,如果保存在 web.config 文件中,
  还可以通过加密来保护数据库的连接,可以减小安全隐患。
  4.2 数据查询实现
  资质资格信息管理系统1个非常重要而又经常用到的功能就是数据查询,其方法如下:
  public int GetBaseInfoByLicID(int id,out LMS_Base_Model objMode,out string strErr)
  {
  objTable=null;
  objMode = new LMS_Base_Model();
  strTemp="SELECT * FROM lms_base WHERE ID = '" + id + "'";
  strSQL.init();
  strSQL[DBType.Common]=strTemp;
  ret=this.RunSQLReturnTable(strSQL,out objTable,out strErr);
  if(ret == 1)
  {
  if(objTable.Rows.Count > 0)
  {
  objMode.Id = Convert.ToInt32(objTable.Rows[0]["ID"]);
  }
  }
  return ret;
  }
  描述:用户查询请求提交时调用,查询符合条件的记录;调用合适的页面显示查询结果。 参数:Id:查询值;返回值:objMode:数据项。
  [NextPage]
  5.总结
  电子政务的开展越来越受到各级政府的重视,B/S 架构体系作为1种成熟的主流分布式 网络系统架构体系也必将越来越多的被应用于电子政务系统的开发。资质资格信息管理电子 政务系统基于成熟的 B/S 架构开发,包括前台互联网门户和后台资质资格管理系统,真正实 现了分布式的、动态的、跨平台的和易于集成的特点,具有用户操作简便、维护和升级方便、 可扩展性强、可移植性高的优点,将会对今后的电子政务系统的开发有1定的参考价值。
  参考文献
  国家信息研究中心.电子政务总体设计与技术实现[M].北京:电子工业出版社,2003.7:3
  任雪松.电子政务现状与发展趋势[J].职业技术教育研究,2006(4):7
  陈国华.CLIENT/SERVER 与 BROWSE/SERVER—从胖客户应用程序向瘦客户应用程序的转变[J].计算 机工程与应用,1999(6):86-88
  李志蜀,游洪跃.C/S,B/S 及 DISTRIBUTION 在 MIS 开发中的应用研究[J].4川大学学报(自然科学
  版),2000,37(1):41-45
  吴丽平,赵卓,陈绮,施国荣,郑建群. 于3层架构的系统管理软件的研究与设计[J]. 计算机工 程.2006,17(99):283-285.
  刘3星.基于 B/S 结构的纳税人信息查询系统[J].计算机与现代化.2006,01(14):44-47.
  Research of Micro midi E-Government Application System
  Based on B/S construction
  Deng Yingjun 1,Zhang Weihuan 1,Cui Kaihua 2
  1 School of Information Engineering, Wuhan University of Technology, Wuhan (430070)
  2 School of Automation, Wuhan University of Technology, Wuhan (430070)
  Abstract
  E-government's construction is the emphasis of our country informationization work in the coming
  period ,and has the very vital significance regarding the advancement transform of the government functions. B/S construction is the thin customer structure, belongs to three technical construction system, has characteristic which distributional, dynamic, the cross platform and easy to integrate, is the present distributed computing processing network system's mainstream construction system. This paper research used based on the B/S construction system to develops the E-government system, and detailed
  description the system structure, various functional module and
  technologies realizes.
  Keywords: E-Government,B/S construction,C/S construction

网学推荐

免费论文

原创论文

设为首页 | 加入收藏 | 论文首页 |原创论文 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师