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

📄 jcy_ry_modify.jsp

📁 公务员工资系统软件工程文档及源代码
💻 JSP
📖 第 1 页 / 共 3 页
字号:
                          </font></b></td>
                        <td colspan="2"><b><b><font color="#105781"> 
                          <select name="sfjx" style="width:80px">
                          <option value="" selected>-请选择-</option>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5007' ",sfjx)%> 
                          </select>
                          </font></b></b></td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">所属区县<font color="#FF0000">*</font></font></b></td>
                        <td colspan="3"> <b><b><b><font color="#105781"> 
                          <%if (curruserszqx.equals("001")){%>
                          <select id="qx" name="qx" onchange="javascript:changeitem(document.form1);"  style="width:90px">
                          <option value="" selected>-请选择-</option>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0001' ", qx)%> 
                          </select>
                          <%} else {
						sun.jdbc.rowset.CachedRowSet crsqx = new sun.jdbc.rowset.CachedRowSet();
						crsqx = std.getResultBySelect("select dm, mc from dm_mx where dmm = '0001' and dm = '"+curruserszqx+"'");
						crsqx.next();
						String qxdm = crsqx.getString(1);
						String qxmc = crsqx.getString(2);
					%>
                          <select id="qx" name="qx" onchange="javascript:changeitem(document.form1);" style="width:90px">
                            <OPTION selected value="<%=qxdm%>"><%=qxmc%></OPTION>
                          </select>
                          <%}%>
                          </font></b></b></b></td>
                        <td align="center"><b><font color="#105781">胸牌号码</font></b></td>
                        <td colspan="2"><b><font color="#105781"> 
                          <input name="xphm" type="text" value="<%=xphm%>" maxlength="9" style="width:80px">
                          </font></b></td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">所属街道</font></b></td>
                        <td colspan="3"><b><b><b><font color="#105781"> 
                          <select id="jd" name="jd">
                          
                            <%if (jd.equals("")) {%>
                            <option value="" selected>-请选择-</option>
                            <%}%>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '0002' and dm like '"+qx+"%'", jd)%> 
                          </select>
                          </font></b></b></b> </td>
                        <td align="center"><b><font color="#105781">公务证件号码</font></b></td>
                        <td colspan="2"><b><font color="#105781"> 
                          <input name="zjhm" type="text" value="<%=zjhm%>" maxlength="9" style="width:80px">
                          </font></b></td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">工作单位<font color="#FF0000">*</font></font></b></td>
                        <td colspan="3"><b><font color="#105781"> 
                          <select id="dwdm" name="dwdm" onchange="javascript:changeitem2(document.form1)" style="width:170px">
                            <%=std.popListWithSelect("select dwdm, dwmc from jcy_dw where qx = '"+qx+"'", gzdw)%> 
                          </select>
                          </font></b> </td>
                        <td align="center"><b><font color="#105781">发证机关<font color="#FF0000">*</font></font></b></td>
                        <td colspan="2"> <input name="fzjg" type="text" value="<%=fzjg%>" size="24">
                        </td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">所属组别</font></b></td>
                        <td colspan="3"><b><b><b><b><b><font color="#105781"> 
                          <select id="zbdm" name="zbdm" style="width:170px">
                            <%=std.popListWithSelect("select zbdm, zbmc from jcy_zb ", sszb)%> 
                            <%if (sszb.equals("")) {%>
                            <option value="" selected>-请选择-</option>
                            <%}%>
                          </select>
                          </font></b></b></b></b></b></td>
                        <td align="center"><b><font color="#105781">工作部门<font color="#FF0000">* 
                          </font></font></b></td>
                        <td colspan="2"><input name="gzbm" type="text" value="<%=gzbm%>" maxlength="20" style="width:95px">
                        </td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">所属编制<font color="#FF0000">*</font></font></b></td>
                        <td><b><b><font color="#105781"> 
                          <select name="ssbz" style="width:80px">
                          <OPTION selected value="">-请选择-</OPTION>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5003' ",ssbz)%> 
                          </select>
                          </font></b></b> </td>
                        <td align="center"><b><font color="#105781">证件类别<font color="#FF0000">*</font></font></b></td>
                        <td><b><b><b><font color="#105781"> 
                          <select name="zjlb" style="width:80px">
                          <OPTION selected value="">-请选择-</OPTION>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5006' ",zjlb)%> 
                          </select>
                          </font></b></b></b></td>
                        <td align="center"><b><font color="#105781">职务</font></b></td>
                        <td colspan="2"><b><font color="#105781"> 
                          <select name="zw" style="width:95px">
                          <OPTION selected value="">-请选择-</OPTION>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5002' ",zw)%> 
                          </select>
                          </font></b> </td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">从事公务工作起日期<font color="#FF0000">*</font></font></b></td>
                        <td colspan="3"><b><b><font color="#105781"> 
                          <!--<script language="JavaScript1.2">var d2=new rlCtrl("","");</script>-->
                          <!--modify : yhy<script language="JavaScript1.2">var d2=new rlCtrl("","<%///=gzqr%>");</script>modify end-->
                          <!--modify : yhy-->
                          
                          
                          <input id="ry_startdate" name="ry_startdate" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqs(this.value)) this.focus();" onDblClick=this.value="" value="<%=gzqr%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('ry_startdate',1);">
                          <!--modify end-->
                          </font></b></b> </td>
                        <td align="center"><b><font color="#105781">证件注销原因</font></b></td>
                        <td colspan="2"><select name="zxyy" style="width:80px">
                            <OPTION selected value="">-请选择-</OPTION>
                            <%=std.popListWithSelect("select dm, mc from dm_mx where dmm = '5008' ",zxyy)%> </select> </td>
                      </tr>
                      <tr bgcolor="#EEF9FF"> 
                        <td width="95" height="30" align="center"><b><font color="#105781">从事公务工作止日期<font color="#FF0000"></font></font></b></td>
                        <td colspan="3">
                        <!--<script language="JavaScript1.2">var d3=new rlCtrl("","");</script> -->
                        <!--<script language="JavaScript1.2">var d3=new rlCtrl("C","<%//=today%>");</script>-->
                        <!--modify :yhy-->
                         
                         

                        <input id="ry_enddate" name="ry_enddate" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkJsrqz(this.value)) this.focus();" onDblClick=this.value="" value="<%=gzzr%>" ><img src="../images/select.gif" name="select" width="18" height="20" border="0" align="absmiddle" onClick="getDate('ry_enddate',1);">
                        <!--modify end-->
                        </td>
                        <td align="center"><b><font color="#105781">证件注销时间</font></b></td>
                        <td colspan="2">
                        <!--<script language="JavaScript1.2">//var d4=new rlCtrl("zxrq","");</script>-->
                        <!--<script language="JavaScript1.2">//var d4=new rlCtrl("zxrq","");</script>-->
                        <!--modify : yhy-->
                        <input id="zxrq" name="zxrq" style="width:80px" class="dateinput" maxlength=10 onFocus=this.select() onblur="this.value=formatDate(this.value);if(!checkSj_only(this.value)) this.focus();" onDblClick=this.value="" value="<%=zxrq%>"><img src="../images/select.gif" width="18" height="20" border="0" align="absmiddle" onClick="getDate('zxrq',1);">
                        <!--modify end-->                        
                        </td>
                      </tr>
                    </table>
                </td>
              </tr>
            </table>
			  <iframe src="jcy_ry_sczp1.jsp?uid=<%=uid%>" height=30 width=100% Frameborder=No Border=0 Marginwidth=0 Marginheight=0 Scrolling=No></iframe>
              <input type="hidden" name="dz" value="modify">
			  <input type="hidden" name="ryzt" value="<%=ryzt%>">
              <table width="75%" border="0" cellspacing="0">
                <tr> 
                  <td width="20%" height="63" align="center"><input type="submit" name="modify" value="保  存" class="input"> 
                  </td>
                  <td width="20%" align="center">&nbsp;</td>
                  <td width="20%" align="center"><input type="button" name="return" value="返  回" onClick="history.back()" class="input"></td>
                </tr>
              </table>
			</form>
			
          </td>
          <td width="14" background="../images/caozuo07.gif"><img src=".././images/caozuo07.gif" width="14" height="6"></td>
        </tr>
      </table>
      <table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="21"><img src=".././images/caozuo05.gif" width="21" height="16"></td>
          <td background=".././images/caozuo08.gif"><img src=".././images/caozuo08.gif" width="6" height="16"></td>
          <td width="19"><img src=".././images/caozuo09.gif" width="19" height="16"></td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
</table>

<iframe name="submitx" width="1000" height="600"  style="display:none"></iframe>
</body>
</html>

<script language="JavaScript">
<%
	Context ctx = null;
	DataSource ds = null;
	Connection con = null;
	Statement stmt = null;
	ResultSet rs_qx = null;
	ResultSet rs_dw = null;
	ResultSet rs_zb = null;
	ResultSet rs_jd = null;
	String sql_qx = "select dm, mc from dm_mx where dmm = '0001'";
	String sql_dw = "select dwdm, dwmc, qx from jcy_dw where yxbz = '01' order by qx";
	String sql_zb = "select zbdm, zbmc, dwdm from jcy_zb order by dwdm";
	String sql_jd = "select dm, mc, substr(dm,0,3) from dm_mx where dmm = '0002'";
	try{
		ctx = new InitialContext();
		ds = (DataSource)ctx.lookup("jc");
		try{
			con = ds.getConnection();
			stmt = con.createStatement();
		}catch(SQLException ex){
			System.out.println(ex);
		}
		rs_qx = stmt.executeQuery(sql_qx);
		int i = 0;
		out.print("function InitBigClass(){");
		out.print("bigclass  = new Array();");
		while (rs_qx.next()){
			out.print("bigclass["+i+"] = new Array;");
			out.print("bigclass["+i+"][0] = \""+rs_qx.getString(1)+"\";");
			out.print("bigclass["+i+"][1] = \""+rs_qx.getString(2)+"\";");
			i++;
		}
		out.print("}");
		i = 0;
		rs_dw = stmt.executeQuery(sql_dw);
		out.print("function InitSmallClass(){");
		out.print("smallclass  = new Array();");
		while (rs_dw.next()){
			out.print("smallclass["+i+"] = new Array;");
			out.print("smallclass["+i+"][0] = \""+rs_dw.getString(1)+"\";");
			out.print("smallclass["+i+"][1] = \""+rs_dw.getString(2)+"\";");
			out.print("smallclass["+i+"][2] = \""+rs_dw.getString(3)+"\";");
			i++;
		}
		out.print("}");
		i = 0;
		rs_zb = stmt.executeQuery(sql_zb);
		out.print("function InitThirdClass(){");
		out.print("thirdclass  = new Array();");
		while (rs_zb.next()){
			out.print("thirdclass["+i+"] = new Array;");
			out.print("thirdclass["+i+"][0] = \""+rs_zb.getString(1)+"\";");
			out.print("thirdclass["+i+"][1] = \""+rs_zb.getString(2)+"\";");
			out.print("thirdclass["+i+"][2] = \""+rs_zb.getString(3)+"\";");
			i++;
		}
		out.print("}");
		i = 0;
		rs_jd = stmt.executeQuery(sql_jd);
		out.print("function InitJdClass(){");
		out.print("jdclass  = new Array();");
		while (rs_jd.next()){
			out.print("jdclass["+i+"] = new Array;");
			out.print("jdclass["+i+"][0] = \""+rs_jd.getString(1)+"\";");
			out.print("jdclass["+i+"][1] = \""+rs_jd.getString(2)+"\";");
			out.print("jdclass["+i+"][2] = \""+rs_jd.getString(3)+"\";");
			i++;
		}
		out.print("}");
	}catch(Exception e){
	}
	finally{
		rs_jd.close();
		rs_zb.close();
		rs_dw.close();
		rs_qx.close();
		stmt.close();
		con.close();
	}
%>

InitBigClass();
InitSmallClass();
InitThirdClass();
InitJdClass();

function changeitem(myfrm)
{   
	var SelectedBigId,i,j;
	//清空onChange事件之前smallclassid中得内容
	for (i= myfrm.dwdm.options.length-1;i>=0  ;--i)      
	{
		  myfrm.dwdm.options[i] = null; 
	}
	SelectedBigId = myfrm.qx.options[myfrm.qx.selectedIndex].value;
	j = 0;
	for (i=0 ;i< smallclass.length ;i++)      
	{
		if (SelectedBigId == smallclass[i][2])
		{
			myfrm.dwdm.options[j] = new Option(smallclass[i][1],smallclass[i][0]); 
			++j;
		}
	}

	var SelectedBigId,i,j;
	//清空onChange事件之前jdclassid中得内容
	for (i= myfrm.jd.options.length-1;i>=0  ;--i)      
	{
		  myfrm.jd.options[i] = null; 
	}
	SelectedBigId = myfrm.qx.options[myfrm.qx.selectedIndex].value;
	j = 0;
	myfrm.jd.options[j] = new Option("-请选择-",""); 
	for (i=0 ;i< jdclass.length ;i++)      
	{
		if (SelectedBigId == jdclass[i][2])
		{
			++j;
			myfrm.jd.options[j] = new Option(jdclass[i][1],jdclass[i][0]); 
		}
	}
	//清空onChange事件之前thirdclassid中得内容
	for (i= myfrm.zbdm.options.length-1;i>=0  ;--i)      
	{
		  myfrm.zbdm.options[i] = null; 
	}
	myfrm.zbdm.options[0] = new Option("-请选择-",""); 
}
//changeitem(document.form1);
function changeitem2(myfrm)
{   
	var SelectedSmallId,i,j;
	//清空onChange事件之前smallclassid中得内容
	for (i= myfrm.zbdm.options.length-1;i>=0  ;--i)      
	{
		  myfrm.zbdm.options[i] = null; 
	}
	SelectedSmallId = myfrm.dwdm.options[myfrm.dwdm.selectedIndex].value;
	j = 0;
	myfrm.zbdm.options[j] = new Option("-请选择-",""); 
	for (i=0 ;i< thirdclass.length ;i++)      
	{
		if (SelectedSmallId == thirdclass[i][2])
		{
			++j;
			myfrm.zbdm.options[j] = new Option(thirdclass[i][1],thirdclass[i][0]); 
		}
	}
}

</script>

⌨️ 快捷键说明

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