package com.amarsoft.app.als.image; import jbo.image.ECM_IMAGE_TYPE; import jbo.image.ECM_PRDIMAGE_RELA; import com.amarsoft.app.als.sys.tools.JBOHelper; import com.amarsoft.are.jbo.JBOTransaction; import com.amarsoft.are.lang.StringX; import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; /** * 影像类型对产品的关联 * @author jqcao * */ public class ManagePRDImageRela { //定义变量 private String imageTypeNo; //影像类型编号 private String productID; //产品编号 private String relaValues=""; //关联影像类型序列 /** * 增加产品与影像类型关联 * @return * @throws Exception */ public String addRelation(Transaction Sqlca) throws Exception{ //产品与影像类型关联 SqlObject asql = new SqlObject("DELETE FROM ECM_PRDIMAGE_RELA WHERE ProductID Like :ProductID").setParameter("ProductID", productID+"%"); Sqlca.executeSQL(asql); if( relaValues != null ){ //再将新关联关系插入 String[] sTypeNos = relaValues.split("@"); for( int i=0; i