📄 frm_layercs_sh_modify.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<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() {
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
sdate=request.form("sdate")
layercsId=request.form("chlayercs")
if layercsId="" then
response.redirect "/profile/errorpage.asp?title=修改酸化措施数据&msg=您没有选择任何数据!"
else
layercsId=split(layercsId,",")(0)
end if
wellId=request("wellId")
isSub=request.form("isSub")
if isSub="" then
'以下从数据库取出层种类
dim layerType(),layerTypeCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_dict where dict_type='layer'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有层种类信息"
else
layerTypeCount=0
do while not rs.eof
layerTypeCount=layerTypeCount+1
redim preserve layerType(layerTypeCount)
layerType(UBound(layerType)-1)=rs("dict_value") & "-" & rs("dict_code")
rs.movenext
loop
end if
%>
<span class="subject">
修改井<%=wellId%>的酸化措施数据<font color=cc0000><%=layercsId%></font>
</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" colspan=2 align=center width=30%>层类别</td>
<td align=left width=70%>  
<select name=text1>
<option value="">请选择......</option>
<%for i=0 to layerTypeCount-1%>
<option value=<%=split(layerType(i),"-")(1)%>><%=split(layerType(i),"-")(0)%></option>
<%next%>
</select>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>层位</td>
<td align=left width=70%>  <input type=text name=text2 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施日期</td>
<td align=left width=70%>  <input type=text name=text3 size=20 class=text> <input type=button value=".." class=button onclick="fPopCalendar(text3,text3); return false" alt="按此选时"></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施方式</td>
<td align=left width=70%>  <textarea name=text4 cols=30 rows=3 class=text></textarea></td>
</tr>
<tr height="20">
<td class="title" rowspan=2 align=center width=15%>预处理液情况</td>
<td class="title" align=center width=15%>最高压力</td>
<td align=left width=70%>  <input type=text name=text5 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>最低压力</td>
<td align=left width=70%>  <input type=text name=text6 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" rowspan=4 align=center width=15%>主处理液情况</td>
<td class="title" align=center width=15%>最高压力</td>
<td align=left width=70%>  <input type=text name=text7 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>最低压力</td>
<td align=left width=70%>  <input type=text name=text8 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>平均压力</td>
<td align=left width=70%>  <input type=text name=text9 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>排量</td>
<td align=left width=70%>  <input type=text name=text10 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=15%>酸化配方及用量</td>
<td align=left width=70%>  <textarea name=text11 cols=30 rows=3 class=text></textarea></td>
</tr>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>备注</td>
<td align=left width=70%>  <textarea name=text12 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=hidden name=wellId value=<%=wellId%>>
<input type=hidden name=chlayercs value=<%=layercsId%>>
<input type=hidden name=sdate value=<%=sdate%>>
<input type=hidden name=isSub value=true>
<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_layercs_sh.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
</form>
<%
else
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")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_sh where sh_id='" &layercsId& "'"
rs.open SQL,conn,1,3
if text1<>"" then
rs("sh_layer_type")=text1
end if
if text2<>"" then
rs("sh_layer_id")=text2
end if
if text3<>"" then
rs("sh_layer_csrq")=text3
end if
if text4<>"" then
rs("sh_layer_csnr")=text4
end if
if text5<>"" then
rs("sh_ycl_zgyl")=text5
end if
if text6<>"" then
rs("sh_ycl_zdyl")=text6
end if
if text7<>"" then
rs("sh_zcl_zgyl")=text7
end if
if text8<>"" then
rs("sh_zcl_zdyl")=text8
end if
if text9<>"" then
rs("sh_zcl_pjyl")=text9
end if
if text10<>"" then
rs("sh_zcl_pl")=text10
end if
if text11<>"" then
rs("sh_pf_name")=text11
end if
if text12<>"" then
rs("sh_memo")=text12
end if
rs.update
rs.close
response.redirect "frm_layercs_sh.asp?well_id=" &wellId& "&date=" &sdate
end if
%>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -