<%@ 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&SearchType=department&EditElementName=ShowdepartmentName&HiddenEditElementName=department&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&SearchType=fundbroker&EditElementName=ShowmanagerName&HiddenEditElementName=manager&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&SearchType=fundbroker&EditElementName=ShowcheckerName&HiddenEditElementName=checker&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&SearchType=activity&EditElementName=Showfatherid&HiddenEditElementName=fatherid&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>