<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty"%>

<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@ page import = "zr.zrpower.entity.sys.SessionUser"%>
<%
response.setContentType("text/html; charset=GBK");
request.setCharacterEncoding("GBK");
SessionUser user = (SessionUser)session.getAttribute("userinfo");
UIService userUI =new UIService();
String strvalue = request.getParameter("value");//得到已经设置的值
String strV11 = "6";
String strV12 = "1";
String strV21 = "6";
String strV22 = "1";
String strV31 = "6";
String strV32 = "1";
if (strvalue!=null)
{
   if (strvalue.length()>0)
   {
       String Array1[] = strvalue.split("B");
       String Array2[];
       //省级
       Array2 = Array1[0].split("A");
       strV11 = Array2[0];
       strV12 = Array2[1];
       //市级
       Array2 = Array1[1].split("A");
       strV21 = Array2[0];
       strV22 = Array2[1];
       //县级
       Array2 = Array1[2].split("A");
       strV31 = Array2[0];
       strV32 = Array2[1];
   }
}
%>
<html>
<head>
<title><%=SysPreperty.getProperty().SystemName%><%=SysPreperty.getProperty().Versoin%></title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js"></SCRIPT>
</head>
<body class="BodyMain">
<form action="" method="post" name="form1">
<!--HTML Head表单头显示[显示内容,图标文件,用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("盖章属性设置","IcoTitle.gif",user.getUserImage())%>
<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>
<table border="0" width="408" id="table1" cellspacing="0" cellpadding="0" height="350">

	<tr>
	<td height="295" align="left" valign="top">
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp;省级单位编码左包含位数:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;<input class="text" type="text" name="num1" style="width='320'" value="<%=strV11%>"><br>
        &nbsp;&nbsp;&nbsp;&nbsp;省级单位盖章特殊属性:<br>
        &nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx1" value="1" <% if (strV12.equals("1")) {out.print("checked");}%>>左包含设置位数的章
         <input type="radio" name="sx1" value="2" <% if (strV12.equals("2")) {out.print("checked");}%>>左包含设置位数单位的章(后两位为00)
         <br>&nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx1" value="3" <% if (strV12.equals("3")) {out.print("checked");}%>>左包含设置位数子单位的章(后两位为非00)
         <br>
        &nbsp;&nbsp;&nbsp;&nbsp;市级单位编码左包含位数:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;<input class="text" type="text" name="num2" style="width='320'" value="<%=strV21%>"><br>
        &nbsp;&nbsp;&nbsp;&nbsp;市级单位盖章特殊属性:<br>
        &nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx2" value="1" <% if (strV22.equals("1")) {out.print("checked");}%>>左包含设置位数的章
         <input type="radio" name="sx2" value="2" <% if (strV22.equals("2")) {out.print("checked");}%>>左包含设置位数单位的章(后两位为00)
         <br>&nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx2" value="3" <% if (strV22.equals("3")) {out.print("checked");}%>>左包含设置位数子单位的章(后两位为非00)
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp;县级单位编码左包含位数:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;<input class="text" type="text" name="num3" style="width='320'" value="<%=strV31%>"><br>
        &nbsp;&nbsp;&nbsp;&nbsp;县级单位盖章特殊属性:<br>
        &nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx3" value="1" <% if (strV32.equals("1")) {out.print("checked");}%>>左包含设置位数的章
         <input type="radio" name="sx3" value="2" <% if (strV32.equals("2")) {out.print("checked");}%>>左包含设置位数单位的章(后两位为00)
         <br>&nbsp;&nbsp;&nbsp;
         <input type="radio" name="sx3" value="3" <% if (strV32.equals("3")) {out.print("checked");}%>>左包含设置位数子单位的章(后两位为非00)

        </td>
	</tr>
        <tr>
	  <td height="40" align="center">
            <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton1("确定","OKClick();","buttonSure.gif",user.getUserImage())%>
                 <%=userUI.ClickButton1("置空","CancelClick();","buttonCancel.gif",user.getUserImage())%>
                 <%=userUI.ClickButton1("关闭","window.close();","buttonClose.gif",user.getUserImage())%>
            </tr></table>
          </td>
	</tr>
	<tr>
	  <td height="20"></td>
	</tr>
</table>
<!--HTML Foot显示表单尾-->
<%=userUI.ShowFootHtml()%>
</form>
</body>
<script type="text/javascript" language="javascript">
function OKClick()
{
    var strV11 = document.all("num1").value;
    var strV21 = document.all("num2").value;
    var strV31 = document.all("num3").value;

    var length = document.form1.elements.length;
    var recordindex="";
    for (var i=0; i<length; i++){
       recordindex  = document.form1.elements[i].name.indexOf("sx1");
       if (recordindex  != -1) {
          if (document.form1.elements[i].checked){
              strV12 = document.form1.elements[i].value;
          }
       }
       recordindex  = document.form1.elements[i].name.indexOf("sx2");
       if (recordindex  != -1) {
          if (document.form1.elements[i].checked){
              strV22 = document.form1.elements[i].value;
          }
       }
       recordindex  = document.form1.elements[i].name.indexOf("sx3");
       if (recordindex  != -1) {
          if (document.form1.elements[i].checked){
              strV32 = document.form1.elements[i].value;
          }
       }
    }

    window.returnValue = strV11+"A"+strV12+"B"+strV21+"A"+strV22+"B"+strV31+"A"+strV32;
    window.close();
}
function CancelClick()
{
    window.returnValue = "";
    window.close();
}
</script>
</html>
<%
//清空相关对象
user = null;
userUI = null;
%>
