📄 frm_well_add.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
areaId=request("areaId")
'以下从数据库取出作业区
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select dict_value from oil.oil_dict where dict_type='area' and dict_code='" &areaId& "'"
rs.open SQL,conn,1,1
dim areaName
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询作业区信息&msg=数据库里没有此作业区信息"
else
areaName=rs("dict_value")
end if
rs.close
'以下取出包含的区块
SQL="select * from oil.oil_block where area_id='" &areaId& "' order by block_id"
rs.open SQL,conn
dim ablock(),blockCount
if not rs.eof and not rs.bof then
blockCount=0
do while not rs.eof
blockCount=blockCount+1
redim preserve ablock(blockCount)
ablock(Ubound(ablock)-1)=rs("block_id") &"@"& rs("block_name")
rs.movenext
loop
end if
rs.close
%>
<html>
<head>
<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 subcheck() {
var dblock=document.form1.block.value;
var dtype=document.form1.welltype.value;
var dwellId=document.form1.wellId.value;
document.form1.blockName.value=document.form1.block.options[form1.block.selectedIndex].text;
if (dwellId=="") {
window.alert("请输入井代号!");
}
else if (dblock=="") {
window.alert("请选择井所属区块 !");
}
else if (dwellId=="") {
window.alert("请选择井类别!");
}
else {
form1.action="frm_well_add_confirm.asp";
form1.submit();
}
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<form method=post name=form1>
<span class="subject">添加新油水井到<%=areaName%>中</span>
<hr size="1" class=hr width="98%" align="center">
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
<tr height="18">
<td class="title" align=center colspan=2>井代号</td>
<td align="center">
<input type=text name=wellId size=20 class=text>
</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>所属区块</td>
<td align="center">
<select name=block>
<option value="">请选择......</option>
<%for i=0 to blockCount-1%>
<option value="<%=split(ablock(i),"@")(0)%>"><%=split(ablock(i),"@")(1)%></option>
<%next%>
</select>
</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>井类别</td>
<td align="center">
<select name=welltype>
<option value="">请选择......</option>
<option value=0>油井</option>
<option value=1>水井</option>
</select>
</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>完井日期</td>
<td align="center">
<input type=text name=textFinishDate size=20 class=text>
<input type=button value=".." class=button onclick="fPopCalendar(textFinishDate,textFinishDate); return false" alt="按此选时">
</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>完成方法</td>
<td align="center"><textarea name=textFinishMet rows=3 cols=30 class=text></textarea></td>
</tr>
<tr height="18">
<td class="title" width=20% align=center>造斜点</td>
<td align="center" width=20% class=title2>深度</td>
<td align="center" width=60%><input type=text name=text1 size=20 class=text>米</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>套补距</td>
<td align="center"><input type=text name=text2 size=20 class=text>米</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>完钻井深</td>
<td align="center"><input type=text name=text3 size=20 class=text>米</td>
</tr>
<tr height="18">
<td class="title" rowspan=3 align=center>最大井斜</td>
<td align="center" class=title2>深度</td>
<td align="center"><input type=text name=text4 size=20 class=text>米</td>
</tr>
<tr height="18">
<td align="center" class=title2>斜度</td>
<td align="center"><input type=text name=text5 size=20 class=text>度</td>
</tr>
<tr height="18">
<td align="center" class=title2>方位</td>
<td align="center"><input type=text name=text6 size=20 class=text>度</td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>完钻层位</td>
<td align="center"><input type=text name=text7 size=20 class=text>   </td>
</tr>
<tr height="18">
<td class="title" align=center colspan=2>总水平位移</td>
<td align="center"><input type=text name=text8 size=20 class=text>米</td>
</tr>
<tr height="18">
<td class="title" rowspan=3 align=center>套管规范</td>
<td align="center" class=title2>外径</td>
<td align="center"><input type=text name=text9 size=20 class=text>米</td>
</tr>
<tr height="18">
<td align="center" class=title2>内径</td>
<td align="center"><input type=text name=text10 size=20 class=text>米</td>
</tr>
<tr height="18">
<td align="center" class=title2>下入深度</td>
<td align="center"><input type=text name=text11 size=20 class=text>米</td>
</tr>
<tr height="18">
<td class="title" rowspan=4 align=center>固井质量</td>
<td align="center" class=title2>水泥返深</td>
<td align="center"><input type=text name=text12 size=20 class=text>米</td>
</tr>
<tr height="18">
<td align="center" class=title2>试泵加压</td>
<td align="center"><input type=text name=text13 size=20 class=text>帕</td>
</tr>
<tr height="18">
<td align="center" class=title2>时间</td>
<td align="center"><input type=text name=text14 size=20 class=text>分</td>
</tr>
<tr height="18">
<td align="center" class=title2>降压</td>
<td align="center"><input type=text name=text15 size=20 class=text>帕</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=hidden name=areaId value="<%=areaId%>">
<input type=hidden name=blockName>
<input type=button name=submit1 value=" 确定 " onclick=subcheck() class=button>
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_area_detail.asp?id=<%=areaId%>");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -