📄 markassessmodi.asp
字号:
<%
'==============================================================
'OA 表单生成器
'版本: 1.1.0 -- 2005-5-24
'程序版权:(c) 2004 by 展亮
'说明:本代码为自由代码,用户可以自由使用,但请保留作者文件头部说明
' 在使用过程中如出现什么问题请及时与作者联系。
' 电子邮件:zlbox@yeah.net QQ:2343397
'=============================================================
'功能:添加/编辑工商户
'参数: request.form("addedit_subed")="true"#表单提交; request("id")#要编辑记录的ID;
'=============================================================
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<!--#include file="../inc/ronger.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
pid=request("id"):if pid="" then pid=0 '记录ID
'------------------------------------------------
'------------------------------------------------添加/修改记录
table="tbioaClientBase" '表名
if request.form("addedit_subed")="true" then
'表单提交后
if pid>0 then
call update(table,"id",pid,false)
response.write "<script>alert('工商户信用等级修改成功!');history.go(-2)</script>"
end if
'记录信用等级
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from tbioaMarkBook where cid="&pid&" and year="&year(date)&" and month="&month(date)
rs.open sql,oConn,1,3
if rs.eof then rs.addnew
rs("cid")=pid
rs("year")=year(date)
rs("month")=month(date)
rs("mark")=request.form("xydj")
rs.update
rs.close
set rs=nothing
response.end
end if
'--------------------------------------------取记录
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " where ID="&pid
rs.open sql,oConn,1,1
'------------------------------------------------
function showvalue(field)
if rs.eof then
showvalue=""
else
if (isnull(rs(field))) then showvalue="" else showvalue=Server.HTMLEncode(rs(field))
end if
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<script src="../js/Popup.js"></script>
<script src="../js/formatdate.js"></script>
<script src="../js/front_chec.js"></script>
</head>
<body topmargin="10" leftmargin="10">
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" src="../images/icon_menu.gif" align="left">工商户分类评定 </td>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<br>
<div align="center">
<table width="600" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td width="100%" class="tdTop">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="tdTop">
<p align="left"><img border="0" src="../images/icon_title.gif" align="left">分类评定</p>
</td>
<td width="90" class="tdTop">
<p align="left"><img border="0" src="../images/icon_return.gif" align="left">
<a href="javascript:history.back()" class="linkTop">返回列表</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" class="td1">
<form name="eventfrm" method="POST" action="?id=<%=pid%>" onSubmit="return checknull(this)">
<input type=hidden name="addedit_subed" value="true">
<input type=hidden name="userid" value="<%=LoginID%>">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="td3">
<td width="60" align="right" valign="top" nowrap>注册号:</td>
<td nowrap><%=showvalue("zch")%></td>
<td width="100" align="right" valign="top" nowrap>字号名称:</td>
<td nowrap><%=showvalue("zhmc")%></td>
<td width="100" align="right" valign="top" nowrap>负责人:</td>
<td nowrap><%=showvalue("fzr")%></td>
</tr>
<tr>
<td width="100%" colspan="6" align="center">
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="tab">
<tr class="td1">
<td colspan="2">
<font color=<%=GetXydjColor("A")%>>■ A类</font> 应具备以下条件
</td>
</tr>
<tr class="td2">
<td width="10" align="center">
<input type="radio" name="xydj" value="A" <%if showvalue("xydj")="A" then response.write "checked"%>>
</td>
<td>
(1)遵守国家法律法规及工商部门规章,近两年内无违法记录的;<br>
(2)及时认真处理消费者投诉的;<br>
(3)近两年验照为合格的。
</td>
</tr>
<tr class="td1">
<td colspan="2">
<font color=<%=GetXydjColor("B")%>>■ B类</font> 应具备以下条件之一
</td>
</tr>
<tr class="td2">
<td width="10" align="center">
<input type="radio" name="xydj" value="B" <%if showvalue("xydj")="B" then response.write "checked"%>>
</td>
<td>
(1)近两年内有轻微违反法律法规和工商部门规章的行为,被警告一次,或处以500元以下罚款的;<br>
(2)近两年内有两次以下对消费者投诉不及时认真处理的;<br>
(3)近两年内未按时缴纳工商规费,被预警两次的。
</td>
</tr>
<tr class="td1">
<td colspan="2">
<font color=<%=GetXydjColor("C")%>>■ C类</font> 应具备以下条件之一
</td>
</tr>
<tr class="td2">
<td width="10" align="center">
<input type="radio" name="xydj" value="C" <%if showvalue("xydj")="C" then response.write "checked"%>>
</td>
<td>
(1)近两年内有两次以上轻微违反法律法规和工商部门规章的行为,被警告两次以上,或处以500元以上5000元以下罚款的;<br>
(2)近两年内有三次以上对消费者投诉不及时认真处理的;<br>
(3)个体工商户验照未予通过的。
</td>
</tr>
<tr class="td1">
<td colspan="2">
<font color=<%=GetXydjColor("D")%>>■ D类</font> 应具备以下条件之一
</td>
</tr>
<tr class="td2">
<td width="10" align="center">
<input type="radio" name="xydj" value="D" <%if showvalue("xydj")="D" then response.write "checked"%>>
</td>
<td>
(1)近两年内有被罚款总额在5000元以上的;<br>
(2)生产经营假冒伪劣商品的;<br>
(3)被责令停业整顿或被有关部门吊销许可证并提请工商部门吊销营业执照的;<br>
(4)被依法吊销营业执照的。
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" colspan="6" align="center">
<input type="submit" value="确定" class="button0" onmouseout=className="button0" onmouseover=className="button1">
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="25%" class="tdBottom">
</td>
</tr>
</table>
</div>
</body>
</html>
<%'释放对象变量
rs.close
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -