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

📄 frm_ydzyfy_modify.asp

📁 一套石油公司内部的运营管理系统
💻 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>
	<%
	wellId=request("wellId")
	syear=request("year")
	smonth=request("month")
	ydzyfyId=request.form("chydzyfy")
	if ydzyfyId="" then
		response.redirect "/profile/errorpage.asp?title=修改转注作业费用结算数据&msg=您没有选择任何数据!" 
	else
		ydzyfyId=split(ydzyfyId,",")(0)
	end if
	isSub=request.form("isSub")
	if isSub="" then
		Set Rs = Server.CreateObject("ADODB.RecordSet")
	SQL="select zzc_zzdate,zzc_date,zzc_id,well_type,dict_value,zzc_fee,zzc_memo from oil.oil_zzc c,oil.oil_well w,oil.oil_dict d where zzc_well_id=well_id and well_area=dict_code and dict_type='area' and zzc_id='" &ydzyfyId& "'"
	rs.open SQL,conn,1,1
	dim ydzyfy(6)
	ydzyfy(0)=rs("zzc_id") 
	ydzyfy(1)=rs("well_type") 
	ydzyfy(2)=rs("dict_value") 
	ydzyfy(3)=rs("zzc_zzdate")
	ydzyfy(4)=rs("zzc_fee")
	ydzyfy(5)=rs("zzc_memo")
	rs.close
%>
	<span class="subject">
		修改<%=syear%>年<%=smonth%>月井<%=wellId%>的转注作业费用结算数据<font color=cc0000><%=ydzyfyId%></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" align=center width=30%>&nbsp</td>
	   <td class="title" align=center width=30%>原数据</td>
	   <td class="title" align=center width=40%>修改后(数据不变化则不填写!)</td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>转注日期</td>
	   <td align=left width=30%>&nbsp&nbsp<%=ydzyfy(3)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text1 size=20 class=text>&nbsp<input type=button value=".." name=datebt class=button onclick="fPopCalendar(text1,text1); return false" alt="按此选时">	   
		</td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>费用结算</td>
	   <td align=left width=30%>&nbsp&nbsp<%=ydzyfy(4)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text2 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>备注</td>
	   <td align=left width=30%>&nbsp&nbsp<textarea cols=30 rows=3 class=text><%=ydzyfy(5)%></textarea></td>
	   <td align=left width=40%>&nbsp&nbsp<textarea name=text3 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=chydzyfy value=<%=ydzyfyId%>>
			<input type=hidden name=wellId value=<%=wellId%>>
			<input type=hidden name=year value=<%=syear%>>
			<input type=hidden name=month value=<%=smonth%>>
			<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_ydzyfy.asp?well_id=<%=wellId%>&year=<%=syear%>&month=<%=smonth%>");'>
		  </td>
		</tr>
	  </table>
	</form>
	<%
	else
		text1=request.form("text1")
		text2=request.form("text2")
		text3=request.form("text3")
		Set Rs = Server.CreateObject("ADODB.RecordSet")
		SQL="select * from oil.oil_zzc where zzc_id='" &ydzyfyId& "'"
		rs.open SQL,conn,1,1
		redim ydzyfy(3)
		ydzyfy(0)=rs("zzc_zzdate") 
		ydzyfy(1)=rs("zzc_fee") 
		ydzyfy(2)=rs("zzc_memo")
		rs.close
		if text1="" then
			text1=ydzyfy(0)
		end if
		if text2="" then
			text2=ydzyfy(1)
		end if
		if text3="" then
			text3=ydzyfy(2)
		end if
		SQL="select * from oil.oil_zzc where zzc_id='" &ydzyfyId& "'"
		rs.open SQL,conn,1,3
		rs("zzc_zzdate")=text1
		rs("zzc_fee")=text2
		rs("zzc_memo")=text3
		rs.update
		rs.close
		response.redirect "frm_ydzyfy.asp?year=" &syear& "&month=" &smonth& "&well_id=" &wellId
	end if
	%>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->

⌨️ 快捷键说明

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