<html>
<head>
<meta http-equiv="Content-Type" content="text/css;
charset=gb2312">
<style>
<!--
.command { font-family: "宋体";
font-size: 9pt;
color: #DF8864;
text-decoration: underline}
.icon { font-family: "宋体";
font-size: 8pt;
color: #FCAC8C}
.text { font-family: "宋体";
font-size: 9pt;
color: 333333;}
.textTableTitle { font-family: "宋体";
font-size: 9pt;
color: #666666}
.textTitle { font-family: "宋体";
font-size: 9pt;
color: #DF8864}
.textLink { font-family: "宋体";
font-size: 9pt;
text-decoration: underline;
color: 444444;
line-height: 12pt}
.textunBold { font-family: "宋体";
font-size: 10pt;
color: #000000;
line-height: 12pt}
a:link{TEXT-DECORATION:underline}
a:visited{TEXT-DECORATION: none}
a:hover{TEXT-DECORATION: underline;
color: #000000}
-->
</style>
<script language='javascript'>
function checkvalue(theinput,minvalue,maxvalue)
{
var tempstr = "0123456789" ;
if(theinput.value != '')
{
for ( i = 0 ;
i < theinput.value.length ;
i ++)
{
if(tempstr.indexOf(theinput.value.charAt(i)) == -1)
{
alert("请输入合法数字") ;
theinput.value = "" ;
theinput.focus();
return ;
}
}
if((eval(theinput.value) < eval(minvalue)) || (eval(theinput.value) > eval(maxvalue)))
{
alert("输入数字超出范围,应该为:"+minvalue+"-"+maxvalue) ;
theinput.value = "" ;
theinput.focus();
return ;
}
}
else
return ;
}
function rtrimStr(vstr)
{
var str = vstr ;
if(str == null)
return str ;
else
{
var strlen = str.length ;
while(strlen > 0)
{
var temp = str.substring(0,1) ;
if(temp != " ")
{
break ;
}
else
{
str = str.substring(1,str.length) ;
strlen = str.length ;
}
}
return str ;
}
}
function tg_jy(yhid,qxbm,frm)
{
alert(document.tg.fydw.value);
alert(frm.fydw2.value);
frm.fydw2.value =do
cument.tg.fydw.value;
alert(frm.fydw2.value);
if (rtrimStr(document.tg.fyrxm.value)==""||document.tg.zw.options[document.tg.zw.selectedIndex].value==-1||rtrimStr(document.tg.fyrlxfs.value)==""||rtrimStr(document.tg.wtnr.value)==""||rtrimStr(document.tg.yqjjy.value)=="")
{
alert("请将相关信息填写完整");
return false;
}
if (yhid==1)
{
if(document.tg.jsfs.options[document.tg.jsfs.selectedIndex].value==-1)
{
alert("请将相关信息填写完整");
return false;
}
}
if (qxbm=='0'||qxbm=='1'||qxbm=='2')
{
if (qxbm=='0'||qxbm=='2')
{
var i=document.tg.shbm.selectedIndex;
var bmid=document.tg.shbm.options
.value;
var csmc=document.tg.shbm.options.text;
if (bmid!=-1)
{
alert("如果您想将该问题转移到'"+csmc+"'去审核,请点击'转移'按钮。");
return false;
}
}
if (rtrimStr(document.tg.fzryj.value)=="")
{
alert("请将相关信息填写完整");
return false;
}
}
var n=document.tg.nf.value;
var y=document.tg.yf.value;
var r=document.tg.rz.value;
if(rtrimStr==""||rtrimStr==""||rtrimStr(r)=="")
{
alert("请将反映时间填写完整");
return false;
}
else
{
if (y!=2)
{
if (y==4||y==6||y==9||y==11)
{
if (r==31)
{
alert("请选择正确的日期");
return false;
}
}
}
else
{
if((n%4==0&&n%100!=0)||(n%400==0))
{
if(r>29)
{
alert("请选择正确的日期");
return false;
}
}
else
{
if(r>28)
{
alert("请选择正确的日期");
return false;
}
}
}
}
document.tg.submit();
}
function zy_jy(yhid)
{
var i=document.tg.shbm.selectedIndex;
var bmid=document.tg.shbm.options.value;
if (bmid==-1)//未选择转移的部门
{
alert("请选择转移部门");
return false;
}
else
{
var bmmc=document.tg.shbm.options.text;
if (confirm("您确实想要将这个问题转移到'"+bmmc+"'去审核?"))
{
return tg_jy(yhid,99);
}
else
return false;
}
}
function MM_findObj(n, d) { //v4.0
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x &&
document.getElementById) x=document.getElementById;
return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0;
i<(args.length-2);
i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible'v='hide')?'hidden':v;
}
obj.visibility=v;
}
}
</script>
</head>
<body bgcolor=white>
<form method=post name=tg action='jcfy_tg_submit.html'>
<table width=85% border=0 align=center bgcolor='#f6f6f6'>
<caption align=center><b>基层反映问题处理单</b></caption><br>
<tr>
<td class='text' width=20% align=right height=27 >反映问题单位</td>
<server>
var conn=getDbCon("jcfy");
if(client.yhid!=1)//分行人员
var yhid=client.yhid;
else
var yhid=request.yhid;
var sql="select yhmc=rtrim(ZWMC) from TXL_YH where YHID="+yhid;
var result=conn.cursor(sql);
if (result.next())
var fywtdw=result.yhmc;
else
var fywtdw="不详";
result.close();
writeln("<input type=hidden name=fydw value="+fywtdw+">");
writeln("<input type=hidden name=fydwyhid value="+yhid+">");
writeln("<td class='text' width=20%>");
writeln(fywtdw);
writeln("</td>");
writeln("<td class='text' width=16% align=right height=27 >反映时间</td>");
//获取数据库时间
var now_rq=commGetDate(conn,"date");
var year=now_rq.substring(0,4);
now_mmdd=now_rq.substring(5);
var i=now_mmdd.indexOf(".");
var month=now_mmdd.substring(0,i);
var day=now_mmdd.substring(i+1);
writeln("<td class=text width=24%>");
writeln("<nobr><input type=text name=nf size=4 value='"+year+"' maxlength=4 onChange='checkvalue(this,1980,2100);'>年");
writeln("<input type=text name=yf size=2 value='"+month+"' maxlength=2 onChange='checkvalue(this,1,12);'>月");
writeln("<input type=text name=rz size=2 value='"+day+"' maxlength=2 onChange='checkvalue(this,1,31);'>日");
writeln("</nobr></td></tr>");
//获取总行国际部处室信息
var sql_cs="select BMID,csmc=rtrim(ZWMC) from TXL_YHBM where YHID=1";
sql_cs +=" and BMBM like '02%' and char_length(rtrim(BMBM))=4 ";
sql_cs +=" and BMID!="+client.bmid1+" order by PLCX";
var result_cs=conn.cursor(sql_cs);
var i=0;
var csarray=new Array();
while(result_cs.next())
{
var temp=new jcfy_csarr(result_cs.BMID,result_cs.csmc);
csarray.push(temp);
i++;
}
result_cs.close();
//获取职务
var sql_zw="select BM,zw=rtrim(ZWSM) from JCFY_XXBM where LB = '职务'";
var result_zw=conn.cursor(sql_zw);
var i=0;
var zwbmarr=new Array();
var zwsmarr=new Array();
while(result_zw.next())
{
zwbmarr=result_zw.BM;
zwsmarr=result_zw.zw;
i++;
}
result_zw.close();
//获取接收方式
var sql_jsfs="select BM,jsfs=rtrim(ZWSM) from JCFY_XXBM where LB = '接收方式'";
var result_jsfs=conn.cursor(sql_jsfs);
var i=0;
var jsbmarr=new Array();
var jssmarr=new Array();
while(result_jsfs.next())
{
jsbmarr=result_jsfs.BM;
jssmarr=result_jsfs.jsfs;
i++;
}
result_jsfs.close();
//获取投稿人姓名
var sql_ryxm="select ryxm=rtrim(ZWMC) from TXL_GRRSXX where GRID="+client.grid;
var result_ryxm=conn.cursor(sql_ryxm);
if (result_ryxm.next())
var zwmc=result_ryxm.ryxm;
else
var zwmc="不详";
result_ryxm.close();
writeln("<tr>");
writeln("<td class=text width=20% align=right height=27 >反映人姓名</td>");
writeln("<td class=text width=20%>");
if (client.bmid1==4)//总行国际部人员
writeln("<input type='text' name=fyrxm size=18>");
else
//分行人员,反映人姓名由系统自动生成
{
writeln(zwmc);
writeln("<input type=hidden name=fyrxm value="+zwmc+">");
}
writeln("</td>");
writeln("<td class=text width=16% align=right height=27 >反映人职务职称</td>");
writeln("<td class=text width=24%>");
writeln("<select name=zw>");
writeln("<option value=-1> </option>");
for(i=0;i<zwbmarr.length;i++)
{
writeln("<option value= "+zwbmarr+">");
writeln(zwsmarr);
writeln("</option>");
}
writeln('</select><br>');
</server>
</td>
</tr>
<tr>
<td class=text width=20% align=right height=27 >反映人联系方式</td>
<td class=text colspan=3><input type='text' name=fyrlxfs size=18></td></tr>
<server>
//判断是否为总行国际部人员
if (client.bmid1==4)
{
//获取投稿人所在处室信息
var sql_cs="select csmc=rtrim(ZWMC) from TXL_YHBM where BMID="+client.bmid;
var result_cs=conn.cursor(sql_cs);
if(result_cs.next())
var csmc=result_cs.csmc;
else
var csmc='不详';
result_cs.close();
writeln("<input type=hidden name=jswtcsmc value="+csmc+">");
writeln("<tr>");
writeln("<td class=text width=20% align=right height=27 >接收问题处室</td>");
writeln("<td class=text width=20%>");
writeln(csmc);
writeln("</td>");
writeln("<td class=text width=16% align=right height=27 >接收方式</td>");
writeln("<td class=text width=24%>");
writeln("<select name=jsfs>")
writeln("<option value=-1> </option>");
for(i=0;i<jsbmarr.length;i++)
{
writeln("<option value="+jsbmarr+">");
write(jssmarr);
writeln("</option>");
}
writeln('</select><br>');
writeln("</td>");
writeln("</tr>");
writeln("<tr>");
writeln("<td class=text width=20% align=right height=27 >接收人姓名</td>");
writeln("<td class=text colspan=3>");
writeln(zwmc);
writeln("<input type='hidden' name=jsrxm value="+zwmc+">");
writeln("</td></tr>");
}
</server>
</table>
<table width=85% border=0 align=center bgcolor='#f6f6f6'>
<tr>
<td class=text >反映问题:</td>
</tr>
<tr>
<td><textarea name=wtnr cols=70 rows=2 wrap=soft></textarea></td>
</tr>
<server>
if (client.yhid!=1 {
writeln("<tr><td class=text>提交总行处室:");
writeln("<select name=tjbm>");
writeln("<option value=-1> </option>");
for(i=0;i<csarray.length;i++)
{
if (csarray.zwmc!='其它')
{
writeln("<option value="+csarray.bmid +">");
write(csarray.zwmc);
writeln("</option>");
}
}
writeln("</select></td></tr>");
}
</server>
<tr>
<td class=text >具体要求及建议:</td>
</tr>
<tr>
<td><textarea name=yqjjy cols=70 rows=2 wrap=soft></textarea></td>
</tr>
<server>
//取权限编码
var grqx=getQx(conn,client.grid,"JCFY");
if(client.bmid1 ==4)
{
var strTj="提交处长审核";
if(grqx=='0' || grqx =='2')
strTj="提交总经理批示";
writeln("<tr bgcolor='FFFFFF'><td class=text align=center><input type='button' value='"+strTj+"' onClick=/"MM_showHideLayers('laytj','','show','layyj','','hide');/"> <input type='button' value='本处处理意见' onClick=/"MM_showHideLayers('laytj','','hide','layyj','','show');/"></td></tr>");
}
writeln("</table>");
writeln("</form>");
writeln("<div id=/"laytj/" style=/"position:absolute;left:0px;top:360px;
visibility: hidden;
/">");
//提交层
writeln("<form method=post action='jcfy_tg_submit.html'>");
writeln("<table align=center width=85% bgcolor='#f6f6f6'>");
if (client.bmid1==4)
{
if (grqx=='0'||grqx=='2')
{
writeln("<tr>");
writeln("<td class=text >处室负责人意见:</td>");
writeln("</tr>");
}
}
else
{
if (grqx=='0'||grqx=='1')
{
writeln("<tr>");
writeln("<td class=text>分管负责人意见:</td>");
writeln("</tr>");
}
}
if (grqx=='0'||grqx=='1'||grqx=='2')
{
writeln("<tr>");
writeln("<td>");
writeln("<textarea name=fzryj cols=70 rows=2 wrap=soft></textarea>");
writeln("</td></tr>");
}
if (grqx=='0'||grqx=='2'
{
writeln("<tr><td class=text>转移到");
writeln("<select name=shbm>");
writeln("<option value=-1> </option>");
for(i=0;i<csarray.length;i++)
{
if (csarray!=client.bmid||grqx=='0')
{
writeln("<option value="+csarray.bmid +">");
write(csarray.zwmc);
writeln("</option>");
}
}
writeln("</select>去审核 </td></tr>");
}
writeln("</table>");
writeln("<table align=center width=85%>");
if(grqx=='0'||grqx=='1'||grqx=='2')
{
writeln("<tr><td class=text align=center><input type='submit' name=tgtj value='发布' onclick='return tg_jy("+client.yhid+","+grqx+");'>");
}
else
writeln("<tr><td class=text align=center><input type='submit' name=tgtj value='提交' onclick='return tg_jy("+client.yhid+","+grqx+");'>");
writeln("<input type=reset name=tgct value='重填'>");
if (grqx=='0'||grqx=='2')
writeln("<input type=submit name=tgzy value=转移 onclick='return zy_jy("+client.yhid+");'>");
writeln("</td></tr></table>");
if (grqx=='0'||grqx=='2')
{
writeln("<table align=center width='85%' border='0' cellpadding=3 cellspacing=0 bordercolorlight='#FFFFFF' bordercolordark='#999999' bgcolor='#FFFFFF' height='50'>");
writeln("<tr bgcolor='#FFFFFF'>");
writeln("<td colspan=2 align='left' class='textunBold'>");
writeln("<font size='-1'>说明:</font>");
writeln("</td></tr>");
writeln("<tr bgcolor='#FFFFFF'>");
writeln("<td colspan=2 align='left' class='textunBold'>");
writeln("<font size='-1'>1.核放行。</font>");
writeln("</td></tr>");
writeln("</table>");
}
else
if (client.yhid!=1)//分行人员
{
writeln("<table align=center width='85%' border='0' cellpadding=3 cellspacing=0 bordercolorlight='#FFFFFF' bordercolordark='#999999' bgcolor='#FFFFFF' height='50'>");
writeln("<tr bgcolor='#FFFFFF'>");
writeln("<td colspan=2 align='left' class='textunBold'>");
writeln("<font size='-1'>说明:</font>");
writeln("</td></tr>");
writeln("<tr bgcolor='#FFFFFF'>");
writeln("<td colspan=2 align='left' class='textunBold'>");
writeln("<font size='-1'>1.管处处理。</font>");
writeln("</td></tr>");
writeln("</table>");
}
writeln("<input type=hidden name=fydw2 value=''>")
writeln("</form></div>"); //提交层结束
if (client.bmid1 ==4)
{
writeln("<div id=/"layyj/" style=/"position:relative;
visibility: hidden;
/">");
//意见层
writeln("<form method=post name=tg2 action='jcfy_tg_submit.html'>");
writeln("<table align=center width=85% bgcolor='#f6f6f6'>");
writeln("<tr><td class=text >问题处理意见:</td></tr>");
writeln("<tr><td><textarea name=wtclyj cols=70 rows=2 wrap=soft></textarea></td></tr>");
if(grqx == '0' || grqx == '2')
writeln("/
<tr><td class=text>浏览权限/
<select name=llqx size='1' >/
<option value='-1'><font size='-1'>请确定浏览权限</font></option>/
<option value='1'><font size='-1'>全行范围</font></option>/
<option value='0'><font size='-1'>反映问题分行</font></option>/
</select>/
</td>/
</tr>");
if(grqx=='0'||grqx=='2')
writeln("<tr bgcolor='FFFFFF'><td class=text align=center><input type='submit' name=tgtj value='发布' onclick='return tg_jy("+client.yhid+","+grqx+",this.form);'>");
else
writeln("<tr bgcolor='FFFFFF'><td class=text align=center><input type='submit' name=tgtj value='提交' onclick='return tg_jy("+client.yhid+","+grqx+","+this.form+");'>");
writeln(" <input type=reset name=tgct value='重填'></td></tr>");
writeln("</table>");
//writeln("<input type=hidden name=fydw2 value=''>")
writeln("</form></div>");
}
conn.release();
</server>
</body>
</html>