ajax非常简单的

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.handsome.fundcrm.service.ComRowSet" %>
<html>
<head>
<title>
修改市场活动
</title>
<jsp:include page="/IncludeJs.jsp"/>
</head>

<body>
<jsp:useBean id="webhelper" scope="session" class="com.handsome.fundcrm.web.WebHelper"/>
<script language="Javascript">
var http = new ActiveXObject("Microsoft.XMLHTTP");
</script>
<!--Body begin-->
      <html:form action="/Activity" method="POST" οnsubmit="return (checkForm(this)&&checkstartenddate(document.getElementById('startdate'), document.getElementById('enddate')))" >
      <html:hidden property="actiontype" value="EDIT"/>
<%
    ComRowSet rowSet = (ComRowSet)request.getAttribute("session.com.handsome.fundcrm.Activity");
    int id = 0;
%>
      <input type="hidden" name="activityid" value="<%=rowSet.getValue(id,"activityid")%>">
      <input type="hidden" name="brokeraccount" value="<%=rowSet.getValue(id,"brokeraccount")%>">
      <input type="hidden" name="checkedflag" value="<%=rowSet.getValue(id,"checkedflag")%>">
      <input type="hidden" name="RetURL" value="<%=request.getParameter("RetURL")%>">
<h1 class="detailsTitle">修改市场活动</h1>

 <table width="100%">
  <tr>
    <td><bean:message key="fundcrm.global.Form.NotNull"/></td>
    <td align="right"><a href="javascript:history.back(-1)">返回</a></td>
  </tr>
 </table>

 <table border="0" cellpadding="1" cellspacing="1" class="tabDetails">
        <tr>
          <th>* 主题:</th>
          <TD><INPUT name="caption" limit="notnull:string:1:60" value="<%=webhelper.getEmpty(rowSet.getValue(id,"caption"))%>"></TD>
          <th>活动类型:</th>
          <TD>
<%
  out.println(webhelper.getSelect("活动类型","type",rowSet.getValue(id,"type")));
%>
          </TD>
        </tr>
        <tr>
          <th>活动描述:</th>
          <TD colspan=3><textarea name=content limit="null:string:1:255"><%=webhelper.getEmpty(rowSet.getValue(id,"content"))%></textarea></TD>
        </TR>
       <TR>
          <th>负责部门:</th>
          <input name=department type="hidden" value="<%=webhelper.getEmpty(rowSet.getValue(id,"department"))%>">
          <TD><INPUT name=ShowdepartmentName readonly><A οnclick=setLastMousePosition(event) href="javascript:openLookup('<%=request.getContextPath()%>/Search/CommonMidSearchPage.jsp?SearchFormName=ActivityForm&amp;SearchType=department&amp;EditElementName=ShowdepartmentName&amp;HiddenEditElementName=department&amp;txtSearch=%')"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 18px; BORDER-BOTTOM: 0px; HEIGHT: 17px" height=17 alt=查询 src="<%=request.getContextPath()%>/images/lookup.gif" width=18 align=middle></A>
<script language="Javascript">
if(getObj("department").value!="") {
  var url = globalPath + "/sys/GetObjectName.jsp?objtype=b&objno="+getObj("department").value;
  http.open("GET", url, false);
  http.Send(null);
  getObj("ShowdepartmentName").value=http.responseText;
}
</script>
          </td>
          <th>负责人:</th>
          <input name=manager type="hidden" value="<%=webhelper.getEmpty(rowSet.getValue(id,"manager"))%>">
          <TD><INPUT name=ShowmanagerName readonly><A οnclick=setLastMousePosition(event) href="javascript:openLookup('<%=request.getContextPath()%>/Search/CommonMidSearchPage.jsp?SearchFormName=ActivityForm&amp;SearchType=fundbroker&amp;EditElementName=ShowmanagerName&amp;HiddenEditElementName=manager&amp;txtSearch=%')"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 18px; BORDER-BOTTOM: 0px; HEIGHT: 17px" height=17 alt=查询 src="<%=request.getContextPath()%>/images/lookup.gif" width=18 align=middle></A>
<script language="Javascript">
if(getObj("manager").value!="") {
  var url = globalPath + "/sys/GetObjectName.jsp?objtype=4&objno="+getObj("manager").value;
  http.open("GET", url, false);
  http.Send(null);
  getObj("ShowmanagerName").value=http.responseText;
}
</script>
          </td>
        </TR>
        <TR>
          <th>审核人:</th>
          <input name=checker type="hidden" value="<%=webhelper.getEmpty(rowSet.getValue(id,"checker"))%>">
          <TD><INPUT name=ShowcheckerName readonly><A οnclick=setLastMousePosition(event) href="javascript:openLookup('<%=request.getContextPath()%>/Search/CommonMidSearchPage.jsp?SearchFormName=ActivityForm&amp;SearchType=fundbroker&amp;EditElementName=ShowcheckerName&amp;HiddenEditElementName=checker&amp;txtSearch=%')"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 18px; BORDER-BOTTOM: 0px; HEIGHT: 17px" height=17 alt=查询 src="<%=request.getContextPath()%>/images/lookup.gif" width=18 align=middle></A>
<script language="Javascript">
if(getObj("checker").value!="") {
  var url = globalPath + "/sys/GetObjectName.jsp?objtype=4&objno="+getObj("checker").value;
  http.open("GET", url, false);
  http.Send(null);
  getObj("ShowcheckerName").value=http.responseText;
}
</script>
          </td>
          <th>活动状态:</th>
          <TD>
<%
  out.println(webhelper.getSelect("活动状态","status",rowSet.getValue(id,"status")));
%>
          </TD>
        </TR>
        <tr>
          <th>开始时间:</th>
   <td><INPUT type="text" id="startdate" name="startdate" οnclick="calendar();" limit="null:date" value="<%=webhelper.getEmpty(rowSet.getValue(id,"startdate"))%>"></td>
   <th>结束时间:</th>
   <td><INPUT type="text" id="enddate" name="enddate" οnclick="calendar();" limit="null:date" value="<%=webhelper.getEmpty(rowSet.getValue(id,"enddate"))%>"></td>
 </tr>
        <TR>
          <th>预期人月:</th>
          <TD><INPUT name="preload" limit="null:float:1:19:2" value="<%=webhelper.getEmpty(rowSet.getValue(id,"preload"))%>"></TD>
          <th>预算成本:</th>
          <TD><INPUT name="precost" limit="null:float:1:19:2" value="<%=webhelper.getEmpty(rowSet.getValue(id,"precost"))%>">元</TD>
        </TR>
         <TR>
          <th>实际成本:</th>
          <TD><INPUT name="factcost" limit="null:float:1:19:2" value="<%=webhelper.getEmpty(rowSet.getValue(id,"factcost"))%>">元</TD>
          <th>预期收入:</th>
          <TD><INPUT name="preincome" limit="null:float:1:19:2" value="<%=webhelper.getEmpty(rowSet.getValue(id,"preincome"))%>">元</TD>
        </TR>
        <TR>
        <th>上级活动
        </th>
          <input name=fatherid type="hidden">
          <TD><INPUT name=Showfatherid  readonly ><A οnclick=setLastMousePosition(event) href="javascript:openLookup('<%=request.getContextPath()%>/Search/CommonMidSearchPage.jsp?SearchFormName=ActivityForm&amp;SearchType=activity&amp;EditElementName=Showfatherid&amp;HiddenEditElementName=fatherid&amp;txtSearch=%')"><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 18px; BORDER-BOTTOM: 0px; HEIGHT: 17px" height=17 alt=查询 src="<%=request.getContextPath()%>/images/lookup.gif" width=18 align=middle></A></td>
          <th>活动地点:</th>
          <TD><INPUT name="actcity" limit="null:string:1:60" value="<%=webhelper.getEmpty(rowSet.getValue(id,"actcity"))%>"></TD>
        </TR>
  <tr>
        <th>基金客户启用:</th>
        <td>
  <input type="checkbox" class="InputCheckBox" name="canorder"<%
  if (webhelper.getEmpty(rowSet.getValue(id, "canorder")).trim().equals("1")) {
   out.print(" checked ");
  }%>>
  </td>
        <th>非基金客户启用:</th>
        <td>
  <input type="checkbox" class="InputCheckBox" name="ucanorder"<%
  if (webhelper.getEmpty(rowSet.getValue(id, "ucanorder")).trim().equals("1")) {
   out.print(" checked ");
  }%>>
  </td>
    </tr>
 <tr>
 <th>渠道客户启用:</th>
 <td colspan="3">
 <input  type="checkbox" class="InputCheckBox" name="channelorder" <%
  if (webhelper.getEmpty(rowSet.getValue(id, "channelorder")).trim().equals("1")) {
   out.print(" checked ");
  }%>>
  </td>
 </tr>
 </table>

 <table class="formSubmit">
        <tr>
          <td><INPUT type="image" src="<%=request.getContextPath()%>/images/button_save.gif" height=20 width=56 border="0">
          <a href="javascript:document.ActivityForm.reset();"><IMG height=20 src="<%=request.getContextPath()%>/images/button_reset.gif" width=56 border=0></A>
          </TD>
        </TR>
      </TABLE>
      </html:form>

<!--Body end-->
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值