<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="net.sz600.basicdata.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.tool.SzDateHelp" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.flow.*" %>
<%@ include file="/sessionInfo.jsp"%>
<% 
  String strLevel = "../../"; 
%> 
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../images/skin1/css2007.css" rel="stylesheet" type="text/css">
</head>
<%
    //获取提交的参数
    String sType = SzConvert.toZeroStr(request.getParameter("type"));
    String sPage = SzConvert.toZeroStr(request.getParameter("page"));
    String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));
    String sPKEY = SzConvert.toZeroStr(request.getParameter("PKEY"));
    String sTable_type = "SZKC_CPFL";
%>
<%
    SzData szData = null;
    SzDataInfo szDataInfo = null;

    String sOPERATOR = request.getParameter("OPERATOR");
    String sKEY =  SzConvert.toZeroStr(request.getParameter("KEY"));
    String sReadonly = "";
    boolean bReadonly = false;
    if (sOPERATOR.equals("detail")) {
        sReadonly = "readonly";
        bReadonly = true;
    }
    //读取数据
    LcPigonholeInfo lcPigonholeInfo = null;
    LcPigonhole lcPigonhole = new LcPigonhole();
    if (!sKEY.equals("0")) {
        lcPigonholeInfo = (LcPigonholeInfo)lcPigonhole.getInfoByKey(Integer.parseInt(sKEY));
    }
    if (lcPigonholeInfo == null) {
        lcPigonholeInfo = new LcPigonholeInfo();
    } else {
    }

%>

<body>
<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="PKEY" value="<%=sPKEY%>">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="OPERATOR" value="<%=sOPERATOR%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>">
  <input type="hidden" name="GDID" value="<%=lcPigonholeInfo.getGDID()%>">
  <input type="hidden" name="type" value="<%=sType%>">
<%@ include file="title.jsp"%>
<table width="100%">
  <tr>
    <td>
    <% if (!bReadonly) { %>
      <%=SzPageHelp.saveButton()%>
    <% } %>
      <%=SzPageHelp.backButton()%>
    </td>
  </tr>
</table>

<!-----信息维护------>
<table width="650" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
  <tr>
    <td class="tdClassTitle">文档引擎ID</td>
    <td><input type="text" name="GDWDYQ" class="txtClass1" value="<%=lcPigonholeInfo.getGDWDYQ()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">文档信息ID</td>
    <td><input type="text" name="GDWDXX" class="txtClass1" value="<%=lcPigonholeInfo.getGDWDXX()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">XML模块</td>
    <td><input type="text" name="GDMKMC" class="txtClass1" value="<%=lcPigonholeInfo.getGDMKMC()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">XML表单</td>
    <td><input type="text" name="GDBDMC" class="txtClass1" value="<%=lcPigonholeInfo.getGDBDMC()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">信息ID</td>
    <td><input type="text" name="GDXXID" class="txtClass1" value="<%=lcPigonholeInfo.getGDXXID()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">归档人员姓名</td>
    <td><input type="text" name="GDDLXM" class="txtClass1" value="<%=lcPigonholeInfo.getGDDLXM()%>" <%=sReadonly%> ></td>
  </tr>
  <tr>
    <td class="tdClassTitle">归档时间</td>
    <td><input type="text" name="GDSJ" class="txtClass1" value="<%=lcPigonholeInfo.getGDSJ()%>" <%=sReadonly%> ></td>
  </tr>
</table>


</form>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="type" value="<%=sType%>">
</form>
<script language="javascript" src="../../share/js/commonTool.js"></script>
<script language="javascript">

  function FormSave(formName, url) {
    //检查是否可以保存

    formName.action = url;
    formName.submit();
  }
</script>
</body>
