@Override public Map<String, Object> initTemplateData(Map<String, Object> sourceMap) { Map<String, Object> dataMap = new HashMap<String, Object>(); SfJdResult jdresult = (SfJdResult) sourceMap.get("jdresult"); SfEntrust entrust = jdresult.getEntrust(); if (entrust.getEntrustor() == null) { entrust.setEntrustor(new SfEntrustor()); } String jgmc = AsOptionMeta.getOptVal(SfElementConstants.OPT_SF_JD_COMPANY_NAME); dataMap.put("jgmc", StringUtil.freeMarkFillWordChar(jgmc)); dataMap.put("bh", StringUtil.freeMarkFillWordChar("编号KPTJ-481-2-14")); dataMap.put("bb", StringUtil.freeMarkFillWordChar("第1版")); dataMap.put("xd", StringUtil.freeMarkFillWordChar("第0次修订")); /*String jgxkz=AsOptionMeta.getOptVal(SfElementConstants.OPT_SF_JD_COMPANY_XKZ); dataMap.put("jgxkz", StringUtil.freeMarkFillWordChar(jgxkz)); String jgdz=AsOptionMeta.getOptVal(SfElementConstants.OPT_SF_JD_COMPANY_ADDRESS); dataMap.put("jgdz", StringUtil.freeMarkFillWordChar(jgdz)); String jgyb=AsOptionMeta.getOptVal(SfElementConstants.OPT_SF_JD_COMPANY_ZIP); dataMap.put("jgyb", StringUtil.freeMarkFillWordChar(jgyb)); String jgdh = AsOptionMeta.getOptVal(SfElementConstants.OPT_SF_JD_COMPANY_TEL); dataMap.put("jgdh", StringUtil.freeMarkFillWordChar(jgdh));*/ dataMap.put("wtbh", StringUtil.freeMarkFillWordChar(entrust.getCode())); dataMap.put("wtf", StringUtil.freeMarkFillWordChar(entrust.getEntrustor().getName())); // dataMap.put("lxr", StringUtil.freeMarkFillWordChar(entrust.getEntrustor().getLinkMan())); // dataMap.put("lxdz", StringUtil.freeMarkFillWordChar(entrust.getEntrustor().getAddress())); // dataMap.put("lxdh", StringUtil.freeMarkFillWordChar(entrust.getEntrustor().getLinkTel())); dataMap.put("sjr", StringUtil.freeMarkFillWordChar(entrust.getSjr())); dataMap.put( "wtsj", StringUtil.freeMarkFillWordChar( entrust.getWtDate() == null ? null : DateUtil.dateToDdString(entrust.getWtDate()))); dataMap.put("slr", StringUtil.freeMarkFillWordChar(entrust.getAcceptorName())); dataMap.put("jddx", StringUtil.freeMarkFillWordChar(jdresult.getJdTargetName())); dataMap.put("jdff", StringUtil.freeMarkFillWordChar(jdresult.getJdMethod())); dataMap.put( "jdsj", StringUtil.freeMarkFillWordChar( jdresult.getJdDate() == null ? " 年 月 日" : DateUtil.dateToChinaString(jdresult.getJdDate()))); dataMap.put("jdfzr", StringUtil.freeMarkFillWordChar(entrust.getJdFzrName())); dataMap.put("jdfhr", StringUtil.freeMarkFillWordChar(entrust.getJdFhrName())); dataMap.put("brief", StringUtil.freeMarkFillWordChar(jdresult.getBrief())); dataMap.put("jdresult", StringUtil.freeMarkFillWordChar(jdresult.getJdResult())); dataMap.put("jdprocess", StringUtil.freeMarkFillWordChar(jdresult.getJdProcess())); dataMap.put("jdopinion", StringUtil.freeMarkFillWordChar(jdresult.getJdOpinion())); return dataMap; }
private void doSuggestPass() { List ZcEbEvalReportList = getCheckedList(); if (ZcEbEvalReportList.size() == 0) { JOptionPane.showMessageDialog(this, "请选择需要送审的数据!", "提示", JOptionPane.INFORMATION_MESSAGE); return; } boolean success = true; try { GkCommentDialog commentDialog = new GkCommentDialog(this.getParentWindow(), ModalityType.APPLICATION_MODAL); if (commentDialog.cancel) { return; } String comment = commentDialog.getComment(); for (int i = 0; i < ZcEbEvalReportList.size(); i++) { ZcEbEvalReport zcEbEvalReport = (ZcEbEvalReport) ZcEbEvalReportList.get(i); zcEbEvalReport.setComment(comment); if (WorkEnv.getInstance().containRole(AsOptionMeta.getOptVal("OPT_ZC_CGZX_FZR_ROLE"))) { zcEbEvalReport.setIsGoonAudit(0); } } requestMeta.setFuncId(this.suggestPassButton.getFuncId()); zcEbEvalServiceDelegate.auditFN(ZcEbEvalReportList, requestMeta); } catch (BaseException ex) { success = false; UIUtilities.showStaickTraceDialog(ex, this, "错误", ex.getMessage()); } if (success) { JOptionPane.showMessageDialog(this, "处理成功!", "提示", JOptionPane.INFORMATION_MESSAGE); refreshCurrentTabData(); } }
public void updateWFEditorEditable(WfAware baseBill, RequestMeta requestMeta) { Long processInstId = baseBill.getProcessInstId(); isEdit = false; if (processInstId != null && processInstId.longValue() > 0) { // 工作流的单据 // wfCanEditFieldMap = BillElementMeta.getWfCanEditField(baseBill, requestMeta); if ("cancel".equals(this.oldZcPProMake.getZcMakeStatus())) { // 撤销单据设置字段为不可编辑 wfCanEditFieldMap = null; } // if ("0".equals(this.oldZcPProMake.getZcMakeStatus())) {//撤销单据设置字段为不可编辑 // isEdit = true; // } for (AbstractFieldEditor editor : fieldEditors) { // 工作流中定义可编辑的字段 if (wfCanEditFieldMap != null && wfCanEditFieldMap.containsKey( Utils.getDBColNameByFieldName(editor.getEditObject(), editor.getFieldName()))) { if (!"zcMakeSequence".equals(editor.getFieldName()) && !"zcPifuCgfs".equals(editor.getFieldName())) { isEdit = true; } editor.setEnabled(true); // 退回状态时,明细都可以编辑 add shijia 2011-10-14 if (WorkEnv.getInstance() .containRole(AsOptionMeta.getOptVal(ZcElementConstants.OPT_ZC_YSDWCG_ROLE))) { BeanTableModel itmodel = (BeanTableModel) itemTablePanel.getTable().getModel(); itmodel.setEditable(true); } } else { editor.setEnabled(false); } } // 子表的设置 updateWFSubTableEditable(); } // 根据采购方式,决定相关属性字段的显示,注释了,暂不应用 // AsValFieldEditor pf = (AsValFieldEditor) fieldEditors.get(fieldEditors.size() - 5); // this.changeWay(pf.getField()); this.changeWay(null); }
package com.ufgov.zc.client.component.setting;