public void actionExportTemplate_actionPerformed(ActionEvent e)
throws Exception
{
// DatataskParameter param = getExportParam1();
// if (param == null)
// {
// throw new FrameWorkException(FrameWorkException.EXPORTDATAPARANULL);
// }
String number = "trainActivity";
String[] tmp = number.split("\\.");
number = tmp[(tmp.length - 1)];
String sheetName = "培训活动";
TemplateExport te = new TemplateExport(number, sheetName);
te.setParentComp(this);
try
{
String filePath = te.export();
if (filePath != null)
{
MsgBox.showInfo(this, EASResource.getString("com.kingdee.eas.tools.datatask.DatataskResource", "templatefilepath") + filePath);
}
}
catch (Exception ex) {
MsgBox.showInfo(this, EASResource.getString("com.kingdee.eas.tools.datatask.DatataskResource", "exporttemplatefilefail") + ex.getMessage());
}
}