@Override
 public JavascriptForward categoryEdit_onSave(final ComponentParameter cParameter) {
   final JavascriptForward js = refreshTree(cParameter);
   // 关闭窗口
   js.append("$Actions['").append(cParameter.getBeanProperty("name")).append("_edit'].close();");
   return js;
 }
 protected JavascriptForward refreshTree(final ComponentParameter cParameter) {
   final JavascriptForward js = new JavascriptForward();
   final String categoryName = (String) cParameter.getBeanProperty("name");
   // 刷新tree
   js.append("$Actions['").append(categoryName).append("'].refresh();");
   return js;
 }
 @Transaction(context = INewsContext.class)
 @Override
 public JavascriptForward onSave(final ComponentParameter cp) throws Exception {
   final NewsAttachment attachment = getAttachment(cp);
   if (attachment != null) {
     attachment.setTopic(cp.getParameter("ae_topic"));
     attachment.setDescription(cp.getParameter("ae_description"));
     attachment.setAttachtype(cp.getIntParameter("ae_attachtype"));
     attachment.setVideoTime(cp.getIntParameter("ae_videotime"));
     newsContext
         .getAttachmentService()
         .update(new String[] {"topic", "attachtype", "videotime", "description"}, attachment);
   }
   final JavascriptForward js = super.onSave(cp);
   js.append("$Actions['NewsTabAttachPage_tbl']();");
   return js;
 }
 public IForward doWorkitem(final ComponentParameter cp) {
   final ProcessBean process = WorkflowUtils.getProcessBean(cp);
   WorkitemBean workitem;
   if (process != null && (workitem = getOpenWorkitem(cp, process)) != null) {
     if (cp.getBoolParameter("monitor")) {
       return new JavascriptForward(
           JS.loc(uFactory.getUrl(cp, WorkflowMonitorPage.class, workitem), true));
     } else {
       return new JavascriptForward(JS.loc(uFactory.getUrl(cp, WorkflowFormPage.class, workitem)));
     }
   } else {
     return JavascriptForward.alert($m("MyProcessWorksTPage.7"));
   }
 }