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

📄 frm_gsz_device_add_confirm.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
dvType=request.form("dvtype")
tarea=request.form("tarea")
tzsz=request.form("tzsz")
zszId=request.form("zsz")
if dvType=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")
elseif dvType=1 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")
end if

'以下从数据库取出注水站
dim zsz(1)
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz where zsz_id='" &zszId& "'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
	response.redirect "/profile/errorpage.asp?title=注水站&msg=数据库里没有注水站信息" 
else
	zsz(0)=rs("zsz_name") & "-" & rs("zsz_id")
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">		
		<%
		if dvType=0 then
			response.write "添加供水站供水设备"
		elseif dvType=1 then
			response.write "添加供水站储水设备"
		end if
		%>
	</span> 
<hr size="1" class=hr width="98%" align="center">
<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 colspan=2>注水站</td>
	   <td align=left width=70%>&nbsp&nbsp<%=split(zsz(0),"-")(0)%></td>
	  </tr> 
	  <%if dvType=0 then%>
	  <tr height="20">
	   <td class="title" align=center colspan=2>设备名称</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text1%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>设备编号</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text2%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>设备型号</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text3%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>数量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text4%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center rowspan=2 width=10%>基本参数</td>
	   <td class="title" align=center width=20%>额定压力</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text5%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>额定排量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text6%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>投运时间</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text7%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>供水水质</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text8%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>实际排量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text9%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>目前运行状况及问题</td>
	   <td align=left width=70%>&nbsp&nbsp
			<textarea cols=30 rows=3 class=text><%=text10%></textarea>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>备注</td>
	   <td align=left width=70%>&nbsp&nbsp
			<textarea cols=30 rows=3 class=text><%=text11%></textarea>
	   </td>
	  </tr> 
	  <%elseif dvType=1 then '--------------------------------------------------------%>
	  <tr height="20">
	   <td class="title" align=center rowspan=5 width=10%>储水罐</td>
	   <td class="title" align=center width=20%>投运时间</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text1%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>规格</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text2%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>数量</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text3%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>大罐防腐</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text4%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>大罐运行状况</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text5%>
	   </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
		   <%=text6%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>投运时间</td>
	   <td align=left width=70%>&nbsp&nbsp
		   <%=text7%>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=20%>目前存在问题及整改方案</td>
	   <td align=left width=70%>&nbsp&nbsp
			<textarea cols=30 rows=3 class=text><%=text8%></textarea>
	   </td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center colspan=2>备注</td>
	   <td align=left width=70%>&nbsp&nbsp
			<textarea cols=30 rows=3 class=text><%=text9%></textarea>
	   </td>
	  </tr> 
	  <%end if%>
</table>
<%
dim maxId
if dvType=0 then
	Set Rs = Server.CreateObject("ADODB.RecordSet")
	SQL="select gsdv_id from oil.oil_gsdv"
	rs.open SQL,conn,1,1
	if rs.eof and rs.bof then
		maxId=0
		rs.close
	else
		rs.close
		SQL="select MAX(gsdv_id) as maxId from oil.oil_gsdv"
		rs.open SQL,conn,1,1
		maxId=rs("maxId")
		rs.close
	end if
	SQL="select * from oil.oil_gsdv"
	rs.open SQL,conn,1,3
	rs.addnew
	rs("gsdv_id")=cint(maxId)+1
	rs("gsdv_zsz_id")=zszId
	rs("gsdv_name")=text1
	rs("gsdv_no")=text2 
	rs("gsdv_model")=text3 
	rs("gsdv_count")=text4 
	rs("gsdv_bs_edyl")=text5 
	rs("gsdv_bs_edpl")=text6 
	rs("gsdv_tysj")=text7 
	rs("gsdv_gssz")=text8 
	rs("gsdv_sjpl")=text9 
	rs("gsdv_wt")=text10 
	rs("gsdv_memo")=text11 
	rs.Update 
	rs.close
elseif dvType=1 then
	Set Rs = Server.CreateObject("ADODB.RecordSet")
	SQL="select gscsdv_id from oil.oil_gscsdv"
	rs.open SQL,conn,1,1
	if rs.eof and rs.bof then
		maxId=0
		rs.close
	else
		rs.close
		SQL="select MAX(gscsdv_id) as maxId from oil.oil_gscsdv"
		rs.open SQL,conn,1,1
		maxId=rs("maxId")
		rs.close
	end if
	SQL="select * from oil.oil_gscsdv"
	rs.open SQL,conn,1,3
	rs.addnew
	rs("gscsdv_id")=cint(maxId)+1
	rs("gscsdv_zsz_id")=zszId 
	rs("gscsdv_csg_tysj")=text1 
	rs("gscsdv_csg_gg")=text2  
	rs("gscsdv_csg_count")=text3  
	rs("gscsdv_csg_dgff")=text4  
	rs("gscsdv_csg_dgzt")=text5  
	rs("gscsdv_gymb_fs")=text6  
	rs("gscsdv_gymb_tysj")=text7  
	rs("gscsdv_gymb_wt")=text8  
	rs("gscsdv_memo")=text9  
	rs.Update 
	rs.close
end if
%>
<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_gsz_device.asp?area=<%=tarea%>&zsz=<%=tzsz%>&dvtype=<%=dvType%>");'>
	  </td>
	</tr>
  </table>
  </form>

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

⌨️ 快捷键说明

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