|
@@ -19,6 +19,7 @@ import nc.vo.uapbd.itembasedoc.JobbasfilVO;
|
|
|
import nc.vo.uapbd.itemmngdoc.JobmngfilVO;
|
|
|
import u8c.bs.servlet.service.BaseServlet;
|
|
|
import u8c.bs.servlet.service.GetBaseDAOUtil;
|
|
|
+import u8c.itf.mmpac.mmpac.IUtilMaintain;
|
|
|
import u8c.log.NcLog;
|
|
|
|
|
|
public class ProjectAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
@@ -53,9 +54,8 @@ public class ProjectAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
//项目档案VO
|
|
|
JobbasfilVO jobbasfilVO = new JobbasfilVO();
|
|
|
|
|
|
- String pk_corp = GetBaseDAOUtil.getCorpPK(jsonObject.getString("pk_corp"));
|
|
|
//公司
|
|
|
- jobbasfilVO.setPk_corp(pk_corp);
|
|
|
+ jobbasfilVO.setPk_corp(jsonObject.getString("pk_corp"));
|
|
|
//项目类型
|
|
|
jobbasfilVO.setPk_jobtype(GetBaseDAOUtil.getprjtypePK(jsonObject.getString("pk_jobtype")));
|
|
|
//项目编码
|
|
@@ -68,15 +68,8 @@ public class ProjectAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
//是否封存
|
|
|
jobbasfilVO.setSealflag(UFBoolean.FALSE);
|
|
|
|
|
|
- jobmngfilVO.setJobBasicInfo(jobbasfilVO);
|
|
|
- //公司
|
|
|
- jobmngfilVO.setPk_corp(pk_corp);
|
|
|
- //公共项目标识
|
|
|
- jobmngfilVO.setPubflag(UFBoolean.FALSE);
|
|
|
- //封存标志
|
|
|
- jobmngfilVO.setSealflag(UFBoolean.FALSE);
|
|
|
- IJobmanagedoc iJobmanagedoc = NCLocator.getInstance().lookup(IJobmanagedoc.class);
|
|
|
- iJobmanagedoc.insertJobmngfilVO(jobmngfilVO);
|
|
|
+ IUtilMaintain iUtilMaintain = NCLocator.getInstance().lookup(IUtilMaintain.class);
|
|
|
+ iUtilMaintain.project_RequiresNew(jobbasfilVO);
|
|
|
result.add(formatRSJsonData("成功", "", jsonObject.getString("jobcode")));
|
|
|
} catch (Exception e) {
|
|
|
result.add(formatRSJsonData("失败", e.getMessage(), jsonObject.getString("jobcode")));
|