写js,发送邮件按钮的 点击事件:
FR.Msg.confirm("警告","确定要发送邮件吗?",function(value){
if(value){
var location = this.options.location; //获取当前控件的位置
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
var content= contentPane.getWidgetByCell(FR.columnRow2CellStr({col: col-2, row: ro})).getValue();
var email= contentPane.getWidgetByCell(FR.columnRow2CellStr({col: col-1, row: ro})).getValue();
if(email!==""){
FR.sentMail({xmlconf:"<?xml version=\"1.0\" encoding=\"UTF-8\"?><R xmlVersion=\"20151125\" releaseVersion=\"8.0.0\" class=\"com.fr.js.EmailJavaScript\"><Parameters/><EmailJS mailTo=\""+email+"\" cc=\"\" bcc=\"\" title=\"邮件标题\" mainText=\""+encode(content)+"\" showTplContent=\"True\"/><\/R>"})
}
} else{
alert("取消发送!");
} },100)