📄 frm_layercs_yl_add_confirm.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
wellId=request.form("wellId")
sdate=request.form("sdate")
isSub=request.form("isSub")
text1=request.form("text1")
text2=request.form("text2")
text3=request.form("text3")
text4=request.form("text4")
text5=request.form("text5")
text6=request.form("text6")
text7=request.form("text7")
text8=request.form("text8")
text9=request.form("text9")
text10=request.form("text10")
text11=request.form("text11")
text12=request.form("text12")
text13=request.form("text13")
text14=request.form("text14")
text15=request.form("text15")
text16=request.form("text16")
'以下从数据库取出层种类
dim layerType(1)
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_dict where dict_type='layer' and dict_code='" &text1& "'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有层种类信息"
else
layerType(0)=rs("dict_value") & "-" & rs("dict_code")
rs.movenext
end if
%>
<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>
<!--
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<form method=post name=form1>
<span class="subject">
添加新数据到井<%=wellId%>的措施数据表
</span>
<hr size="1" class=hr width="98%" align="center">
<%
if isSub="" then
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
您确认要添加新数据吗?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
<tr height="20">
<td class="title" colspan=2 align=center width=30%>层类别</td>
<td align=left width=70%>  <%=split(layerType(0),"-")(0)%></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>层位</td>
<td align=left width=70%>  <%=text2%></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施日期</td>
<td align=left width=70%>  <%=text3%></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施方式</td>
<td align=left width=70%>  <textarea cols=30 rows=3 class=text><%=text4%></textarea></td>
</tr>
<tr height="20">
<td class="title" rowspan=6 align=center width=15%>压裂施工参数</td>
<td class="title" align=center width=15%>破压</td>
<td align=left width=70%>  <%=text5%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>工作压力</td>
<td align=left width=70%>  <%=text6%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>停泵压力</td>
<td align=left width=70%>  <%=text7%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>排量</td>
<td align=left width=70%>  <%=text8%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>加砂量</td>
<td align=left width=70%>  <%=text9%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>砂比</td>
<td align=left width=70%>  <%=text10%></td>
</tr>
<tr height="20">
<td class="title" rowspan=5 align=center width=15%>压裂液性质及用量</td>
<td class="title" align=center width=15%>压裂液</td>
<td align=left width=70%>  <%=text11%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>前置液</td>
<td align=left width=70%>  <%=text12%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>混砂液</td>
<td align=left width=70%>  <%=text13%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>顶替注</td>
<td align=left width=70%>  <%=text14%></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>入地总液量</td>
<td align=left width=70%>  <%=text15%></td>
</tr>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>备注</td>
<td align=left width=70%>  <textarea cols=30 rows=3 class=text><%=text16%></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=hidden name=wellId value="<%=wellId%>">
<input type=hidden name=sdate value="<%=sdate%>">
<input type=hidden name=text1 value="<%=text1%>">
<input type=hidden name=text2 value="<%=text2%>">
<input type=hidden name=text3 value="<%=text3%>">
<input type=hidden name=text4 value="<%=text4%>">
<input type=hidden name=text5 value="<%=text5%>">
<input type=hidden name=text6 value="<%=text6%>">
<input type=hidden name=text7 value="<%=text7%>">
<input type=hidden name=text8 value="<%=text8%>">
<input type=hidden name=text9 value="<%=text9%>">
<input type=hidden name=text10 value="<%=text10%>">
<input type=hidden name=text11 value="<%=text11%>">
<input type=hidden name=text12 value="<%=text12%>">
<input type=hidden name=text13 value="<%=text13%>">
<input type=hidden name=text14 value="<%=text14%>">
<input type=hidden name=text15 value="<%=text15%>">
<input type=hidden name=text16 value="<%=text16%>">
<input type=hidden name=isSub value="yes">
<input type=submit name=submit1 value=" 确定 " class=button>
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='history.go(-1);'>
</td>
</tr>
</table>
<%
else
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_yl"
rs.open SQL,conn,1,1
dim maxid
if rs.eof and rs.bof then
maxId=0
rs.close
else
rs.close
SQL="select MAX(yl_id) as maxId from oil.oil_yl"
rs.open SQL,conn,1,1
maxId=rs("maxId")
rs.close
end if
SQL="insert into oil.oil_yl values('" &cint(maxId)+1& "','" &wellId& "','" &text1& "','" &text2& "','" &text3& "','" &text4& "','" &text5& "','" &text6& "','" &text7& "','" &text8& "','" &text9& "','" &text10& "','" &text11& "','" &text12& "','" &text13& "','" &text14& "','" &text15& "','" &text16& "')"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
新数据已被添加到井<%=wellId%>中
</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 LANGUAGE=javascript onclick='javascript:location.replace("frm_layercs_yl.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -