MySQL之建设工程监管信息系统
--创建SelfStudy数据库
CREATE DATABASE ConstructionDB
ON
PRIMARY --创建主数据库文件
(
NAME=' ConstructionDB', --数据文件的物理名称
FILENAME='D:\Project\ ConstructionDB.dbf', --数据文件的名称和路径
SIZE=5MB, --数据文件的初始容量
MaxSize=20MB, --数据文件的最大容量
FileGrowth=1MB --数据文件的增长量
)
LOG ON --创建日志文件
(
NAME='ConstructionDB', --数据文件的逻辑名称
FileName='D:\Project\ ConstructionDB.ldf', --数据文件的名称和路径
Size=2MB, --数据文件的初始容量
MaxSize=20MB, --数据文件的最大容量
FileGrowth=1MB --数据文件的增长量
)
GO use ConstructionDB
go ---3.2 创建数据表
create table T_enterprise_info(
Ent_id char(32) not null, -- 企业编号 主键
Ent_name varchar(32) not null, --企业名称
Begin_date datetime, --建立时间 --日期型
Addr varchar(64) ,--详细地址
Reg_capital decimal(12,4),--注册资本 数值型,单位:万元 )
--插入数据
insert into T_enterprise_info
select '200200078','长沙城建有限公司','2002-01-01','长沙市天心区',1000 union all
select '200400005','天信建筑企业有限公司','2004-01-01','长沙市芙蓉区',1500 --设置主键
alter table T_enterprise_info
add constraint pk_T_enterprise_info_Ent_id primary key(Ent_id) select * from T_enterprise_info
表格:


project_add:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>"> <title>My JSP 'project_add.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head>
<script language="javascript">
function check(){
var inputs = document.getElementsByTagName('input');
for(var i=0,len=2;i<len;i++){
if(inputs[i].value == ''){
alert('必填项不能为空!');
inputs[i].focus();
return false;
}
}
return true;
}
</script> <body>
<table width="834" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30" background="images/title01.jpg" class="title">>>项目信息录入</td>
<td width="27" height="30"><img src="data:images/title02.jpg" width="27" height="30" /></td>
<td height="30" bgcolor="#029AC5" class="txt">您的位置:招投标流程 > 建设工程报建 > 项目信息录入</td>
</tr>
</table>
<br />
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="30" bgcolor="#80C6FF" class="titletxt">•建设工程报建—项目信息录入(以下带<span class="txtred">*</span>为必填项)</td>
</tr>
<tr>
<td height="30" align="center"><form id="form1" name="form1" method="post" action="AddProjectServlet" onsubmit="return check()" >
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#E7E7E7">
<tr>
<td width="24%" height="30" align="right" class="txt"><span class="txt">工程编号:</span></td>
<td height="30" align="left"><label for="textfield"></label>
<input height="20" width="400" type="text" name="textfield1" id="textfield" />
<span class="txtred">*</span></td>
</tr>
<tr>
<td width="24%" height="30" align="right" class="txt"><span class="txt">工程名称:</span></td>
<td height="30" align="left"><input height="20" width="400" type="text" name="textfield2" id="textfield2" />
<span class="txtred">*</span></td>
</tr> <tr>
<td height="30" align="right" class="txt">法人代表:</td>
<td height="30" align="left"><input height="20" width="150" type="text" name="textfield3" id="textfield3" /></td>
</tr>
<tr>
<td height="30" align="right" class="txt">建设单位电话:</td>
<td height="30" align="left"><input height="20" width="200" type="text" name="textfield4" id="textfield4" /></td>
</tr>
<tr>
<td height="30" align="right" class="txt">建设单位地址:</td>
<td height="30" align="left"><span class="txtred">
<input height="20" width="400" type="text" name="textfield5" id="textfield5" />
</span></td>
</tr> </table>
<p><input type="submit" name="button" id="button" value=" 确 定 " /></p>
</form>
<p> </p></td>
</tr>
</table>
<p> </p>
</body>
</html>
project_list
<%@ page language="java" import="java.util.*,biz.*,entity.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>"> <title>My JSP 'project_list.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head> <body>
<table width="834" border="0" cellpadding="0" cellspacing="0">
<%
ProjectBiz pb=new ProjectBizImpl();
ArrayList<Project> list=pb.getProjects();
Project p=null; %>
<tr>
<td height="30" background="images/title01.jpg" class="title">>>项目信息录入</td>
<td width="27" height="30"><img src="data:images/title02.jpg" width="27" height="30" /></td>
<td height="30" bgcolor="#029AC5" class="txt">您的位置:招投标流程 > 建设工程报建 > 项目信息录入</td>
</tr>
</table>
<br />
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" height="37"> </td>
<td width="34%" height="37"> </td>
<td width="33%" height="37" align="right" valign="top"><a href="project_add.jsp" target="_self"><img src="data:images/addpro.JPG" border="0" /></a> </td>
</tr>
<tr>
<td height="30" colspan="3" bgcolor="#029AC5" class="titletxt">•项目信息</td>
</tr>
<tr>
<td height="30" colspan="3"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" height="30" align="center" bgcolor="#80C6FF"><span class="txt"><span class="titletxt">工程编号</span></span></td>
<td width="34%" height="30" align="center" bgcolor="#80C6FF" class="titletxt">工程名称</td>
<td width="33%" height="30" align="center" bgcolor="#80C6FF" class="titletxt">相关操作</td>
</tr>
<% for(int i=0;i<list.size();i++){
p=list.get(i); %>
<tr>
<td width="33%" height="30" align="center" bgcolor="#FFF5D7"><span class="txt"><%=p.getProject_id() %></span></td>
<td width="34%" height="30" align="center" bgcolor="#FFF5D7"><span class="txt"><%=p.getProject_name() %></span></td>
<td width="33%" height="30" align="center" bgcolor="#FFF5D7"><span class="txt">【修改】【删除】</span></td>
</tr>
<% } %>
</table></td>
</tr>
</table>
<p> </p> </body>
</html>
MySQL之建设工程监管信息系统的更多相关文章
- CentOS 7 MariaDB-MMM
MariaDB-MMM高可用群集 1.MySQL-MMM概述 MMM(Master-Master replication manager for MySQL)是一套支持双主故障切换和双主日常管理的脚本 ...
- 20184302 2019-2020-2 《Python程序设计》实验四报告
20184302 2019-2020-2 <Python程序设计>实验四报告 课程:<Python程序设计> 班级: 1843 姓名: 李新锐 学号:184302 实验教师:王 ...
- MySQL信息系统函数
- 大数据项目实践:基于hadoop+spark+mongodb+mysql+c#开发医院临床知识库系统
一.前言 从20世纪90年代数字化医院概念提出到至今的20多年时间,数字化医院(Digital Hospital)在国内各大医院飞速的普及推广发展,并取得骄人成绩.不但有数字化医院管理信息系统(HIS ...
- MySQL 5.7 学习:功能性能的提升
背景: 继上次介绍 初识 MySQL 5.6 新功能.参数完之后,刚好MySQL 5.7又GA了,在官方测试里看到,MySQL5.7在功能.性能.可用性.安全和监控上又提升了很高.现在看看和MySQL ...
- mysql系统数据库
mysql系统数据库主要存储了一些存储MySQL服务的系统信息表.一般情况下mysql库的表都是MYASIM引擎,除非个别情况.mysql库的表的作用大致可以分为以下几类: (1)授权系统表 (2)系 ...
- MySQL出现Waiting for table metadata lock的原因以及解决方法
转自:http://ctripmysqldba.iteye.com/blog/1938150 (有修改) MySQL在进行alter table等DDL操作时,有时会出现Waiting for tab ...
- 【mysql】高可用集群之MMM
一.复制的常用拓扑结构 复制的体系结构有以下一些基本原则: (1) 每个slave只能有一个master: (2) 每个slave只能有一个唯一的服务器ID: (3) 每个maste ...
- 【转】【MySql】Waiting for table metadata lock原因分析
MySQL在进行alter table等DDL操作时,有时会出现Waiting for table metadata lock的等待场景.而且,一旦alter table TableA的操作停滞在Wa ...
随机推荐
- Codeforces Round #306 (Div. 2) A. Two Substrings 水题
A. Two Substrings Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/550/pro ...
- Codeforces Round #288 (Div. 2)D. Tanya and Password 欧拉通路
D. Tanya and Password Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/508 ...
- Android 中View的绘制机制源代码分析 三
到眼下为止,measure过程已经解说完了,今天開始我们就来学习layout过程.只是在学习layout过程之前.大家有没有发现我换了编辑器,哈哈.最终下定决心从Html编辑器切换为markdown编 ...
- [Angular2 Form] Build Select Dropdowns for Angular 2 Forms
Select Dropdowns in Angular 2 a built with select and option elements. You use *ngFor to loop throug ...
- 已解决】Sublime中运行带input或raw_input的Python代码出错:EOFError: EOF when reading a line(转)
[问题] 在折腾: [已解决]Sublime Text 2中运行Python程序出错:The system cannot find the file specified 的过程中,虽然解决了找不到py ...
- Ubuntu15.04 安装Android开发环境
一.安装Java SE JKD A.下载 http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSite ...
- kmp算法简明教程
在字符串s中寻找模式串p的位置,这是一个字符串匹配问题. 举例说明: i = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 s = a b a a c a b a a a b a a ...
- iOS H5 容器的一些探究(一):UIWebView 和 WKWebView 的比较和选择
来源:景铭巴巴 链接:http://www.jianshu.com/p/84a6b1ac974a 一.Native开发中为什么需要H5容器 Native开发原生应用是手机操作系统厂商(目前主要是苹果的 ...
- 根据当前IP获取当时所在信息
现在很多系统,都要在登录时候,确定当前用户所在的位置.这里记录一个C#使用Http的方式获取当前IP所在的位置信息.主要使用的api是新浪的接口. public partial class sina ...
- Cache的原理、设计及实现
Cache的原理.设计及实现 前言 虽然CPU主频的提升会带动系统性能的改善,但系统性能的提高不仅仅取决于CPU,还与系统架构.指令结构.信息在各个部件之间的传送速度及存储部件的存取速度等因素有关,特 ...