package com.vci.web.other; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import com.vci.corba.omd.ltm.LinkType; import com.vci.corba.omd.qtm.QTD; import com.vci.corba.omd.qtm.QTInfo; import com.vci.corba.common.PLException; import com.vci.web.util.PlatformClientUtil; import org.springframework.beans.factory.annotation.Autowired; /** * 查询模板导出数据类:可序列化为模板文件,同时也兼导出数据控制类 * @Title :QTExportData.java * @Description : * @Copyright :宏博远达科技有限公司 * @Author :平台与规划部/ZhongGY/E-mail:zhonggy@vci-tech.com * @Date :2015-6-8 * @Version :1 * @Other :产生注释:Alt+Shift+J */ public class LinkQTExportData implements Serializable{ private static final long serialVersionUID = 1L; /** * 需要序列化的模板数据 */ // private Map selectedBtmItems = new HashMap(); private Map selectedBtmAttrs = new HashMap(); private Map allSelectedQTs = new HashMap(); private Map allQTDs = new HashMap(); public Map getSelectedBtmItems() { return selectedBtmItems; } public void setSelectedBtmItems(Map selectedBtmItems) { this.selectedBtmItems = selectedBtmItems; } public Map getSelectedBtmAttrs() { return selectedBtmAttrs; } public void setSelectedBtmAttrs(Map selectedBtmAttrs) { this.selectedBtmAttrs = selectedBtmAttrs; } public Map getAllQTDs() { return allQTDs; } public void setAllQTDs(Map allQTDs) { this.allQTDs = allQTDs; } public Map getAllQTs() { return allSelectedQTs; } // public void setAllQTs(Map allQTs) { // this.allSelectedQTs = allQTs; //// try { //// BizType[] btmArray = BtmClient.getService().getAllBtmItem(""); //// for (int i = 0; i < btmArray.length; i++) { //// allBtmItems.put(btmArray[i].name, btmArray[i]); //// } //// } catch (PLException e) { //// } // for (Map.Entry item : allQTs.entrySet()) { //// BizType bizType = allBtmItems.get(item.getValue().btmName); // LinkType linkType; // try { // linkType = LinkTypeStart.getService().getLinkType(item.getValue().btmName); // if(linkType != null && !linkType.oid.equals("")){ // selectedBtmItems.put(linkType.name, linkType); //// selectedBtmAttrs.put(linkType.name, BtmProvider.getInstance().getAbNames(linkType.name)); // selectedBtmAttrs.put(linkType.name, linkType.attributes); // allQTDs.put(linkType.name, .getQTDService().getLinkTypeQTDs(linkType.name)); // } // } catch (PLException e1) { // // TODO Auto-generated catch block // e1.printStackTrace(); // } // } // //selectedBtmAttrs? // //allQTDs? // } }