41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2018-06-08
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/App/Interface/Email/EmailSendList.jsp";
|
|
|
|
String sTempletNo = "EmailSendInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
|
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","as_save(0,'sendEmail()')","","","",""},
|
|
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function returnList(){
|
|
parent.AsDialog.ClosePage();
|
|
}
|
|
|
|
function sendEmail(){
|
|
var sendStatus = getItemValue(0,getRow(0),"SEND_STATUS");
|
|
if(sendStatus!="IMMEDIATELY"){
|
|
var id = getItemValue(0,getRow(0),"ID");
|
|
var resultValue =AsControl.RunJavaMethodTrans("com.tenwa.sendemail.SendEmail","send","id="+id);
|
|
alert(resultValue);
|
|
parent.AsDialog.ClosePage();
|
|
}else{
|
|
alert("邮件保存成功!");
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |