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

📄 frm_ydcsxg_add_confirm.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
sdate=request.form("sdate")
isSub=request.form("isSub")
syear=split(sdate,"-")(0)
smonth=split(sdate,"-")(1)
welltype=request.form("welltype")
Set Rs = Server.CreateObject("ADODB.RecordSet")
if welltype=0 then
	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")
	text17=request.form("text17")
	text18=request.form("text18")
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")
	text13=request.form("text13")
	text14=request.form("text14")
	text15=request.form("text15")
	text16=request.form("text16")
	text17=request.form("text17")
	text18=request.form("text18")
	text19=request.form("text19")
	text20=request.form("text20")
	text21=request.form("text21")
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">		
	添加<%=syear%>年度<%=smonth%>月的月度措施效果统计(<%if welltype=0 then response.write "油井" else response.write "水井" end if%>)
</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" align=center width=30% colspan=2>措施井号</td>
   <td align=left width=30%>&nbsp&nbsp
   <%=text1%>
   </td>
  </tr> 
  </tr> 
  <tr height="20">
   <td class="title" align=center width=30% colspan=2>措施内容</td>
   <td align=left width=70%>&nbsp&nbsp<textarea cols=30 rows=3 class=text><%=text2%></textarea></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=30% colspan=2>措施层位</td>
   <td align=left width=70%>&nbsp&nbsp<%=text3%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=30% colspan=2>完井日期</td>
   <td align=left width=70%>&nbsp&nbsp<%=text4%></td>
  </tr> 
  <%if welltype=0 then%>
  <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%>&nbsp&nbsp<%=text5%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>日产油</td>
   <td align=left width=70%>&nbsp&nbsp<%=text6%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>含水</td>
   <td align=left width=70%>&nbsp&nbsp<%=text7%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15% >动液面</td>
   <td align=left width=70%>&nbsp&nbsp<%=text8%></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%>&nbsp&nbsp<%=text9%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>日产油</td>
   <td align=left width=70%>&nbsp&nbsp<%=text10%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>含水</td>
   <td align=left width=70%>&nbsp&nbsp<%=text11%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>动液面</td>
   <td align=left width=70%>&nbsp&nbsp<%=text12%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>本月生产天数</td>
   <td align=left width=70%>&nbsp&nbsp<%=text13%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>措施有效天数</td>
   <td align=left width=70%>&nbsp&nbsp<%=text14%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>日增油量</td>
   <td align=left width=70%>&nbsp&nbsp<%=text15%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>月增油量</td>
   <td align=left width=70%>&nbsp&nbsp<%=text16%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>累计增油量</td>
   <td align=left width=70%>&nbsp&nbsp<%=text17%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>备注</td>
   <td align=left width=70%>&nbsp&nbsp<textarea cols=30 rows=3 class=text><%=text18%></textarea></td>
  </tr> 
<%else%>
  <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%>&nbsp&nbsp<%=text5%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>管压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text6%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>油压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text7%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15% >套压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text8%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>配注</td>
   <td align=left width=70%>&nbsp&nbsp<%=text9%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15% >注水量</td>
   <td align=left width=70%>&nbsp&nbsp<%=text10%></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%>&nbsp&nbsp<%=text11%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>管压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text12%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>油压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text13%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15% >套压</td>
   <td align=left width=70%>&nbsp&nbsp<%=text14%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15%>配注</td>
   <td align=left width=70%>&nbsp&nbsp<%=text15%></td>
  </tr> 
  <tr height="20">
   <td class="title" align=center width=15% >注水量</td>
   <td align=left width=70%>&nbsp&nbsp<%=text16%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>措施有效天数</td>
   <td align=left width=70%>&nbsp&nbsp<%=text17%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>日增注</td>
   <td align=left width=70%>&nbsp&nbsp<%=text18%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>月增注</td>
   <td align=left width=70%>&nbsp&nbsp<%=text19%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>累计增注</td>
   <td align=left width=70%>&nbsp&nbsp<%=text20%></td>
  </tr> 
  <tr height="20">
   <td class="title" colspan=2 align=center width=30%>备注</td>
   <td align=left width=70%>&nbsp&nbsp<textarea cols=30 rows=3 class=text><%=text21%></textarea></td>
  </tr> 
  <%end if%>
</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>
	  <%
	  if welltype=0 then
	  %>
		<input type=hidden name=sdate value="<%=sdate%>">
		<input type=hidden name=welltype value="0">
		<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=text17 value="<%=text17%>">
		<input type=hidden name=text18 value="<%=text18%>">
		<%
		else
		%>
		<input type=hidden name=sdate value="<%=sdate%>">
		<input type=hidden name=welltype value="1">
		<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=text17 value="<%=text17%>">
		<input type=hidden name=text18 value="<%=text18%>">
		<input type=hidden name=text19 value="<%=text19%>">
		<input type=hidden name=text20 value="<%=text20%>">
		<input type=hidden name=text21 value="<%=text21%>">
		<%
		end if
		%>
		<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
	dim maxId
	if welltype=0 then
		SQL="select * from oil.oil_incre"
		rs.open SQL,conn,1,1
		if rs.eof and rs.bof then
			maxId=0
			rs.close
		else
			rs.close
			SQL="select MAX(incre_id) as maxId from oil.oil_incre"
			rs.open SQL,conn,1,1
			maxId=rs("maxId")
			rs.close
		end if
		SQL="select * from oil.oil_incre where incre_well_id='" &text1& "' and incre_obj_date='" &sdate& "'"
		rs.open SQL,conn
		if not rs.eof then
			response.redirect "/profile/errorpage.asp?title=添加数据&msg=数据库已经有本月的效果统计数据!" 
		end if
		rs.close
	else
		SQL="select * from oil.oil_cszz"
		rs.open SQL,conn,1,1
		if rs.eof and rs.bof then
			maxId=0
			rs.close
		else
			rs.close
			SQL="select MAX(cszz_id) as maxId from oil.oil_cszz"
			rs.open SQL,conn,1,1
			maxId=rs("maxId")
			rs.close
		end if
		SQL="select * from oil.oil_cszz where cszz_well_id='" &text1& "' and cszz_obj_date='" &sdate& "'"
		rs.open SQL,conn
		if not rs.eof then
			response.redirect "/profile/errorpage.asp?title=添加数据&msg=数据库已经有本月的效果统计数据!" 
		end if
		rs.close
	end if
	if welltype=0 then
		SQL="insert into oil.oil_incre values('" &cint(maxId)+1& "','" &text1& "','老井','','" &text3& "','" &text2& "','" &text4& "','" &text5& "','" &text6& "','" &text7& "','" &text8& "','" &text9& "','" &text10& "','" &text11& "','" &text12& "','" &text13& "','" &text14& "','" &text15& "','" &text17& "','" &text18& "','" &sdate& "','" &text16& "')"
		rs.open SQL,conn,1,3
	else
		SQL="insert into oil.oil_cszz values('" &cint(maxId)+1& "','" &text1& "','" &text2& "','" &text4& "','" &text9& "','" &text10& "','" &text5& "','" &text6& "','" &text8& "','" &text15& "','" &text16& "','" &text11& "','" &text12& "','" &text14& "','" &text17& "','" &text18& "','" &text19& "','" &text20& "','" &text21& "','" &sdate& "','" &text3& "','" &text7& "','" &text13& "')"
		rs.open SQL,conn,1,3
	end if
%>
<table width=80% border=0  cellspacing="0" cellpadding="0">
	<tr>
		<td align=left height=40>
		新数据已经成功添加到数据库。
		</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_ydcsxg.asp?year=<%=syear%>&month=<%=smonth%>&welltype=<%=welltype%>");'>
	  </td>
	</tr>
  </table>
  <%
  end if
  %>
  </form>

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

⌨️ 快捷键说明

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