⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_syj_basic_add.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<html>
<head>
<%
'以下从数据库取出作业区
dim area(),areaCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_dict where dict_type='area'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
	response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有作业区信息" 
else
	areaCount=0
	do while not rs.eof
		areaCount=areaCount+1
		redim preserve area(areaCount)
		area(UBound(area)-1)=rs("dict_value") & "-" & rs("dict_code")
		rs.movenext
	loop
end if

'以下从数据库取出注水站
dim zsz(),zszCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz order by zsz_id"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
	response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有注水站信息" 
else
	zszCount=0
	do while not rs.eof
		zszCount=zszCount+1
		redim preserve zsz(zszCount)
		zsz(UBound(zsz)-1)=rs("zsz_id") & "-" & rs("zsz_name") & "-" & rs("zsz_area_id")
		rs.movenext
	loop
end if
%>
 
<title>油田采油工艺综合管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/css/oil.css" type="text/css">
<SCRIPT LANGUAGE="javascript" src="/include/calender.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function areaCh() {
	var vbarea=document.form1.area.value;
	var vbzsz=new Array(<%=UBound(zsz)%>);
	var vbzsz_name=new Array(<%=Ubound(zsz)%>);
	
	<%
	for i=0 to Ubound(zsz)-1
	%>
	vbzsz[<%=i%>]="<%=zsz(i)%>";
	vbzsz_name[<%=i%>]="<%=split(zsz(i),"-")(1)%>";
	<%
	next
	%>
	var tzsz_id="";
	var tzsz_name="";
	for (var i=0;i<vbzsz.length;i++) {
		tazsz=vbzsz[i].split("-");
		tarea=tazsz[2];
		if (tarea==vbarea) {
			if (tzsz_id=="") {
				tzsz_id=tazsz[0];
			} else {
				tzsz_id=tzsz_id+"*"+tazsz[0];
			}
			if (tzsz_name=="") {
				tzsz_name=vbzsz_name[i];
			} else {
				tzsz_name=tzsz_name+"*"+vbzsz_name[i];
			}
		} 
	}
	var curzsz_id=tzsz_id.split("*");
	var curzsz_name=tzsz_name.split("*");
	if (curzsz_id!="") {
		form1.zsz.length=curzsz_id.length+1;
	} else {
		form1.zsz.length=1;
	}
	form1.zsz.options[0].value="";
	form1.zsz.options[0].text="请选择......";
	for (var i=0;i<form1.zsz.length-1;i++) {
		form1.zsz.options[i+1].value=curzsz_id[i];
		form1.zsz.options[i+1].text=curzsz_name[i];
	}
}

function subcheck() {
	form1.action="frm_syj_basic_add_confirm.asp";
	form1.submit();
}
-->
</SCRIPT>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
	<span class="subject">
		添加新水源井资料
	</span> 
	<hr size="1" class=hr width="98%" align="center">
	<br>
	<form action="" method=post name=form1>
	<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2" 
	  bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
	  <tr height="20">
	   <td class="title" align=center colspan=2>所属作业区</td>
	   <td align=left width=70%>&nbsp&nbsp
			<select name=area onchange="areaCh()">
				<option value="">请选择......</option>
				<%for i=0 to areaCount-1%>
				<option value=<%=split(area(i),"-")(1)%>><%=split(area(i),"-")(0)%></option>
				<%next%>
			</select>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>所属注水站</td>
	   <td align=left width=70%>&nbsp&nbsp
			<select name=zsz>
			</select>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>水源井名称</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text1" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>管辖单位</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text2" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>采水方式</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text3" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center rowspan=7 width=10%>采水参数</td>
	   <td class="title" align=center width=20%>冲程</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text4" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>冲次</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text5" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>泵深</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text6" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>泵径</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text7" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>管串深度</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text8" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>管串规格</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text9" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>运行状况</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text10" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>日产水能力</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text11" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>日产水量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text12" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center rowspan=3 width=10%>注水站资料</td>
	   <td class="title" align=center width=20%>供水量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text13" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>供水管线规格及长度</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text14" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>供水管线运行状况</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <input type="text" name="text15" size=30 class=text>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2%>目前存在的问题及整改方案</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <textarea name=text16 cols=30 rows=3 class=text></textarea>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2%>备注</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <textarea name=text17 cols=30 rows=3 class=text></textarea>
	   </td>
	  </tr> 
	</table>
	<br>
	<hr size="1" class=hr width="98%" align="center">
	  <br>
	  <table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
		<tr align="center"> 
		  <td> 
			<input type="button" name="Submit32" value=" 添加 " class=button onclick=subcheck()>
			<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_syj_basic.asp");'>
		  </td>
		</tr>
	  </table>
	</form>

</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -