| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.starter.web.enumpck.DataBaseEnum; |
| | | |
| | | |
| | | import com.vci.client.bof.ClientBusinessObject; |
| | | import com.vci.client.uif.actions.client.DataRightUtil; |
| | | import com.vci.client.uif.engine.common.DefaultTableNode; |
| | | import com.vci.client.uif.engine.common.IDataNode; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.starter.web.enumpck.DataSecretEnum; |
| | | import com.vci.starter.web.enumpck.UserSecretEnum; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.web.dto.BaseModelDTO; |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | import plm.bs.bom.clientobject.ClientLinkObject; |
| | | import plm.uif.actions.client.DataRightUtil; |
| | | import plm.uif.actions.client.RightCheckConstants; |
| | | import plm.uif.engine.common.DefaultTableNode; |
| | | import plm.uif.engine.common.IDataNode; |
| | | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.HashMap; |
| | |
| | | * 回去选择的数据 |
| | | * @param boData 业务数据的信息 |
| | | * @return 选择的数据 |
| | | * @throws VCIError 缺少的时候会抛出异常 |
| | | * @throws PLException 缺少的时候会抛出异常 |
| | | */ |
| | | protected Object getSelectedObject(BaseModelDTO boData) throws VCIError{ |
| | | protected Object getSelectedObject(BaseModelDTO boData) throws PLException { |
| | | IDataNode selectedObject = new DefaultTableNode(); |
| | | ClientBusinessObject cbo = new ClientBusinessObject(); |
| | | if(StringUtils.isBlank(boData.getOid())){ |
| | | throw new VCIError("没有获取到数据的主键",new String[0]); |
| | | throw new PLException("没有获取到数据的主键",new String[0]); |
| | | } |
| | | if(StringUtils.isBlank(boData.getRevisionOid())){ |
| | | throw new VCIError("没有获取到数据的版本主键",new String[0]); |
| | | throw new PLException("没有获取到数据的版本主键",new String[0]); |
| | | } |
| | | if(StringUtils.isBlank(boData.getNameOid())){ |
| | | throw new VCIError("没有获取到数据的项主键",new String[0]); |
| | | throw new PLException("没有获取到数据的项主键",new String[0]); |
| | | } |
| | | if(StringUtils.isBlank(boData.getBtmname())){ |
| | | throw new VCIError("没有获取到数据的业务类型",new String[0]); |
| | | throw new PLException("没有获取到数据的业务类型",new String[0]); |
| | | } |
| | | cbo.setOid(boData.getOid()); |
| | | cbo.setRevisionid(boData.getRevisionOid()); |