<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%ColumnName="":Tablename="HX_CarReturn"
WS_MAID=request("WS_MAID")
 if WS_MAID="" or isnull(WS_MAID) or (WS_MAID<>"" and not isnumeric(WS_MAID)) then 	response.write "<script>alert('非法操作');window.close();</script>":response.end  
CarMan=request("CarMan"):CarRoadNUM=request("CarRoadNUM"):CarOilNUM=request("CarOilNUM"):CarPassNUM=request("CarPassNUM"):CarRemark=request("CarRemark"):Orderby=" where WS_CMID="&WS_MAID
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
action=request("action")
if action="saveinfo" then
  if rs.recordcount<=0 then
   rs.addnew
  end if
  rs("WS_CarMan")=CarMan: rs("WS_CarRoadNUM")=CarRoadNUM:  rs("WS_CarOilNUM")=CarOilNUM:  rs("WS_CarPassNUM")=CarPassNUM:  rs("WS_CarRemark")=CarRemark :rs("WS_CMID")=WS_MAID:  rs.update
  response.write "<script>if(confirm('操作成功!\n是否关闭此窗口？')) {window.close();window.opener.location.reload();}else {location.href='returnmodify.asp?WS_MAID="&WS_MAID&"';}</script>"
  response.end
end if
if rs.recordcount>0 then
  CarMan=rs("WS_CarMan"): CarRoadNUM=rs("WS_CarRoadNUM"):  CarOilNUM=rs("WS_CarOilNUM"):  CarPassNUM=rs("WS_CarPassNUM"):  CarRemark=rs("WS_CarRemark")
end if
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>反馈信息</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='8' leftmargin='0' bottommargin='8'><table width='400'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>反馈信息</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='4' bgcolor=FFFBE8><form name='form1' method='post' action='?action=saveinfo' onSubmit='return CarReturncheck(this);'><tr bgcolor='#FFFBE8'><td width='18%' height='23'>司　　机</td><td width='82%' height='23'><input type='text' name='carman' value='"&carman&"' size='42'></td></tr><tr bgcolor='#FFFBE8'><td width='18%' height='23'>公 里 数</td><td width='82%' height='23'><input type='text' name='CarRoadnum' value='"&CarRoadnum&"' size='42'></td></tr><tr bgcolor='#FFFBE8'><td width='18%' height='23'>耗 油 量</td><td width='82%'  height='23'><input type='text' name='CarOilnum' value='"&CarOilnum&"' size='42'></td></tr><tr bgcolor='#FFFBE8'><td width='18%' height='23'>消费金额 </td><td width='82%'  height='23'><input type='text' name='CarPassnum' value='"&CarPassnum&"' size='42'></td></tr><tr bgcolor='#FFFBE8'><td width='25%' height='44' valign='top'>备　　注</td><td width='75%' height='44'><textarea name='CarRemark' cols='42' rows='6' class='bgline'>"&CarRemark&"</textarea></td></tr><tr bgcolor='#FFFBE8'><td>&nbsp;</td><td><input type='submit' name='Submit' value=' 提 交 '> <input type='reset' name='Submit' value=' 重 输 '> <input type='button' name='Submit' value=' 关 闭 ' onclick='javascript:window.close();'><input name='WS_MAID' type='hidden' value='"&WS_MAID&"'></td></tr></form></table></td></tr></table>"
%>