|
|
|
@ -21,6 +21,7 @@ import com.connor.chint.sap2.util.BomToSapUtil;
|
|
|
|
|
import com.connor.chint.sap2.util.ChintPreferenceUtil;
|
|
|
|
|
import com.connor.chint.sap2.util.KUtil;
|
|
|
|
|
import com.connor.chint.sap2.util.MyProgressBarCompent;
|
|
|
|
|
import com.connor.chint.sap2.util.SAPUtil;
|
|
|
|
|
import com.squareup.okhttp.OkHttpClient;
|
|
|
|
|
import com.squareup.okhttp.Request;
|
|
|
|
|
import com.squareup.okhttp.Response;
|
|
|
|
@ -354,16 +355,15 @@ public class KjController {
|
|
|
|
|
}
|
|
|
|
|
List<ClassProperty> propList = new ArrayList<ClassProperty>();
|
|
|
|
|
//TODO 读取CHINT_kjbomTemp_FL首选项根据组织、图纸母号找到对应的分类库 ICM230101
|
|
|
|
|
TCComponentGroup group = session.getCurrentGroup();
|
|
|
|
|
String groupId = group.getProperty(TCComponentGroup.PROP_GROUP_NAME);
|
|
|
|
|
String groupId = SAPUtil.getGroupID();
|
|
|
|
|
String prefId = groupId + ":" + bean.kjbomId, classID = "";
|
|
|
|
|
String[] prefs = ChintPreferenceUtil.getPreferences("CHINT_kjbomTemp_FL", session);
|
|
|
|
|
for(String pref : prefs) {
|
|
|
|
|
if(!pref.startsWith(prefId))
|
|
|
|
|
continue;
|
|
|
|
|
classID = pref.substring(pref.indexOf("|") + 1);
|
|
|
|
|
classID = pref.substring(pref.indexOf("\\|") + 1);
|
|
|
|
|
}
|
|
|
|
|
System.out.println("classID==>" + classID);
|
|
|
|
|
System.out.println("prefId==>" + prefId + "\nclassID==>" + classID);
|
|
|
|
|
if(classID.isEmpty()) {
|
|
|
|
|
MessageBox.post(prefId + "未找到对应分类库", "提示", MessageBox.WARNING);
|
|
|
|
|
}else
|
|
|
|
|