- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>合同管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkAddPact()
- {
- if(document.AddPact.PactTitle.value == "")
- {
- alert("请输入合同名称!");
- document.AddPact.PactTitle.focus();
- return false;
- }
- for(var i=0;i<document.AddPact.AccessoriesList.length;i++)
- {
- if(document.AddPact.AccessoriesList.options[i].value.length>1)
- {
- document.AddPact.AccessoriesNames.value += "," + document.AddPact.AccessoriesList.options[i].text;
- document.AddPact.AccessoriesURLs.value += "," + document.AddPact.AccessoriesList.options[i].value;
- }
- }
- }
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="AddPact" action="AddPactAction.jsp" method="post" onSubmit="javascript:return checkAddPact();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <%
- Request m_request = new Request(request);
- int intUserID = m_session.GetInt("UserID");
- int iTempletID = m_request.GetInt("TempletID");
- Vector vArticle = PactTempletManager.getRecordByPactType(2); //获取合同模板记录
- out.println("<tr>");
- out.println("<td width="20%" align="right" valign="middle"><font color="#0A0A0A">合 同:</font></td>");
- out.println("<td width="80%" colspan="3" align="left" valign="middle" nowrap><select name="TempletID" onchange="document.AddPact.action='AddPact.jsp?';document.AddPact.submit();">");
- out.println("<option value="0" selected>选择标准合同</option>");
- for (int j = 0;j < vArticle.size();j++)
- {
- if (iTempletID == (Integer.parseInt(((Vector)vArticle.get(j)).get(0).toString())))
- out.println("<option value="" + ((Vector)vArticle.get(j)).get(0).toString() + "" selected>" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
- else
- out.println("<option value="" + ((Vector)vArticle.get(j)).get(0).toString() + "">" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
- }
- out.println("</select>");
- out.println("</tr>");
- Vector vTemplet = PactTempletManager.getRecordByID(iTempletID); //获取合同附件记录
- %>
- <tr>
- <td width="20%" align="right" valign="middle"><font color="#0A0A0A">合同编号:</font></td>
- <td width="80%" colspan="3" align="left" valign="middle" nowrap>
- <input name="PactNumber" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">信托资金:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="IntrustFund" type="text" maxlength="15" size="15" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">合同期限起始时间:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="PactTermStart" type="text" maxlength="10" size="10" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">合同期限结束时间:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="PactTermEnd" type="text" maxlength="10" size="10" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方名称:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideName" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方身份证营业执照:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideIDCardNumber" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方法定代表人:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideCorporation" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方地址:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideAddress" type="text" maxlength="160" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方电话:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideTel" type="text" maxlength="60" size="15" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方代理人:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideDeputy" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">甲方签字日期:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="FirstSideSignTime" type="text" maxlength="10" size="10" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方名称:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideName" type="text" maxlength="160" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方身份证营业执照:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideIDCardNumber" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方法定代表人:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideCorporation" type="text" maxlength="60" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方地址:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideAddress" type="text" maxlength="160" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方电话:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideTel" type="text" maxlength="60" size="15" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方代理人:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideDeputy" type="text" maxlength="160" size="60" value="">
- </tr>
- <tr>
- <td width="18%" align="right" valign="middle"><font color="#0A0A0A">乙方签字日期:</font></td>
- <td width="82%" colspan="3" align="left" valign="middle" nowrap>
- <input name="SecondSideSignTime" type="text" maxlength="10" size="10" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </tr>
- <tr>
- <td width="8%" align="right" valign="middle"><font color="#0A0A0A">名 称:</font></td>
- <td width="92%" colspan="3" align="left" valign="middle" nowrap>
- <input name="PactTitle" type="text" maxlength="60" size="60" value="<%=vTemplet.size()>0?((Vector)vTemplet.get(0)).get(1).toString():""%>">
- </tr>
- <tr>
- <td align="right" valign="middle">附 件:</td>
- <td valign="middle" align="left"><table width="100%" border="0" cellspacing="0">
- <tr>
- <td style="width:100%;" align="left">
- <select name="AccessoriesList" size="4" multiple style="width:100%;">
- <%
- if (vTemplet.size() > 0)
- {
- vArticle = ArticleAttManager.getAttInfo(iTempletID,"PactTempletInfo");
- if (vArticle.size() > 0)
- {
- for (int j = 0;j < vArticle.size();j++)
- {
- out.println("<option value="" + ((Vector)vArticle.get(j)).get(2).toString() + "">" + ((Vector)vArticle.get(j)).get(1).toString() + "</option>");
- }
- }
- }
- %>
- </select>
- </td>
- <%
- if (vTemplet.size() > 0)
- {
- out.println("<td width="50%" align="left" valign="top">");
- if (vArticle.size() > 0)
- {
- for (int j = 0;j < vArticle.size(); j++)
- {
- out.println("<a href="" + ((Vector)vArticle.get(j)).get(2).toString() + "" target="_blank">" + ((Vector)vArticle.get(j)).get(1).toString() + "</a><br>");
- }
- }
- out.println("</td>");
- }
- %>
- <td width="100" align="center" valign="middle">
- <input type="button" onClick="AddAccessories(document.AddPact.AccessoriesList);" value="新增附件"><br>
- <input type="button" onClick="DelAccessories(document.AddPact.AccessoriesList);" value="删除附件">
- <input name="AccessoriesNames" type="hidden">
- <input name="AccessoriesURLs" type="hidden">
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="AddTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- <input name="AddUserID" type="hidden" value="<%=intUserID%>">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">内 容:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="PactContent" cols="75" rows="20"><%=vTemplet.size()>0?((Vector)vTemplet.get(0)).get(2).toString():""%></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onClick="window.location='PactManage.jsp';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>