1、平台接口修改以及web端后台的修改。
2、对平台的更新jar包上传。
已修改48个文件
已重命名2个文件
已添加3个文件
| | |
| | | start 1-Startup_Redis.bat |
| | | choice /t 3 |
| | | |
| | | start 1-Startup_Server.bat |
| | | start 2-Startup_Server.bat |
| | | choice /t 3 |
| | | |
| | | start 5-Startup_Web.bat |
| | |
| | | # The requirepass is not compatable with aclfile option and the ACL LOAD |
| | | # command, these will cause requirepass to be ignored. |
| | | # |
| | | # requirepass foobared |
| | | requirepass foobared |
| | | |
| | | # New users are initialized with restrictive permissions by default, via the |
| | | # equivalent of this ACL rule 'off resetkeys -@all'. Starting with Redis 6.2, it |
| | |
| | | #conf.properties version by Eclipse |
| | | #corba.properties version by Eclipse |
| | | #Sat Oct 19 14:06:56 CST 2013 |
| | | NameService=corbaloc\:\:localhost\:30000/NameService |
| | | InstanceIdentity=platform- |
| | | |
| | | ## éÂÂè¦Âå 载çÂÂ.jaræÂÂå¨路å¾Â(ä¼ÂéÂÂå½ÂÃ¥ÂÂæÂÂ件夹éÂÂçÂÂ.jarï¼Âï¼Â妠D:/xx/xx/xx |
| | | jarPath=./libs |
| | | |
| | | jacorb.net.socket_factory.port.min=29990 |
| | | jacorb.net.socket_factory.port.max=29999 |
| | |
| | | jacorb.log.default.verbosity= |
| | | |
| | | |
| | | #æÂÂä»¶ä¼ è¾ÂÃ¥ÂÂ大尠|
| | | blockLength=32 |
| | | |
| | | ########################################### å¹³å°UIF éÂÂè¦ÂçÂÂéÂ
Âç½® BEGIN ########################################### |
| | | #人åÂÂä¿¡æÂ¯åÂ
¥æÂ¶,æÂ¯å¦éÂÂè¦Âå¯Â级åÂÂ段 |
| | | exportSecretGrade=false |
| | | |
| | | # å å¯Âå¯ÂéÂÂ¥ |
| | | encrypt.key=www.liming.portal.comwww.liming.portal.com |
| | | # ç»å½ÂçªÂå£ï¼ÂæÂ¯å¦æÂ¾ç¤ºâÂÂä¿ÂÃ¥ÂÂâÂÂå¤ÂéÂÂæ¡ |
| | | logon.saveBut=false |
| | | # ç³»ç»Âç¨æÂ·ç»å½Âè¶Â
æÂ¶æÂ¶é´(Ã¥ÂÂä½ÂÃ¥ÂÂÃ¥ÂÂéÂÂï¼ |
| | | logon.loginovertime=1000 |
| | | # 主æ¡ÂæÂ¶ä¸Âï¼ÂæÂ¯å¦æÂ¾ç¤ºé¡¶é¨å¾ç |
| | | top.logon.image.show=false |
| | | # 主æ¡ÂæÂ¶ä¸Âï¼Âé¡¶é¨å¾çÂÂÃ¥ÂÂç§°ï¼Â该å¾çÂÂä½Â亠com.vci.rmip.logon.client Ã¥ÂÂ
ä¸Âï¼ |
| | | top.logon.image.name=title.jpg |
| | | # 主æ¡ÂæÂ¶ä¸Âï¼ÂæÂ¯å¦æÂ¾ç¤ºèÂÂå true:æÂ¾ç¤º false:ä¸ÂæÂ¾ç¤º |
| | | top.menuBar.show=true |
| | | # 主èÂÂÃ¥ÂÂä¸Âï¼ÂæÂ¯å¦æÂ¾ç¤ºâÂÂéÂÂæÂ°ç»å½Ââ true:æÂ¾ç¤º false:ä¸ÂæÂ¾ç¤º |
| | | top.menuBar.menuItem.relogin=true |
| | | # 主èÂÂÃ¥ÂÂä¸Âï¼ÂæÂ¯å¦æÂ¾ç¤ºâÂÂä¿®æÂ¹å¯Âç Ââ true:æÂ¾ç¤º false:ä¸ÂæÂ¾ç¤º |
| | | top.menuBar.menuItem.changePassword=true |
| | | |
| | | # ç³»ç»ÂÃ¥Â
³äºÂéÂ
Âç½®,ä¿®æÂ¹éÂ
Âç½®æÂ¯è¦Â注æÂÂä¸ÂæÂÂÃ¥ÂÂ符çÂÂç¼Âç Â使ç¨utf-8 |
| | | system.about.title = Ã¥Â
³äº |
| | | # æÂÂä½³å¾çÂÂ尺寸400*90ï¼Âé»Â认å¼为about.png |
| | | system.about.imageName=about.png |
| | | # 产åÂÂÃ¥ÂÂç§° |
| | | system.about.softNameProduct= VCI Innovation 2017 |
| | | # çÂÂæÂÂ_ä¸ÂæÂ |
| | | system.about.softNameCopyrightC = å®ÂÃ¥ÂÂè¿Âè¾¾åÂ
ŒÂ¸ çÂÂæÂÂæÂÂæÂ |
| | | # çÂÂæÂÂ_è±æÂ |
| | | system.about.softNameCopyrightE = Copyright(C) 2011-2017 Contributors. All rights reserved. |
| | | # 项ç®åÂÂç§° |
| | | system.about.softName = Ã¥ÂÂ京å®ÂÃ¥ÂÂè¿Âè¾¾ç§ÂæÂÂæÂÂéÂÂÃ¥Â
ŒÂ¸ - ç³»ç»Âå¼ÂÃ¥ÂÂå¹³å° |
| | | # å¹³å°çÂÂæÂ¬ |
| | | system.about.version = v2017.06.14 |
| | | # Ã¥Â
ŒÂ¸ç½Âå |
| | | system.about.visit = http://www.vci-tech.com |
| | | |
| | | |
| | | # 管çÂÂÃ¥ÂÂç¨æÂ·å |
| | | user.admin=admin |
| | | # è¶Â
级管çÂÂÃ¥ÂÂç¨æÂ·å |
| | | user.developer=developer |
| | | # å®ÂÃ¥Â
¨ç®¡çÂÂÃ¥ÂÂè§Âè²åÂÂç§° |
| | | user.Sysadmin=\u5b89\u5168\u7ba1\u7406\u5458 |
| | | user.rooter=root |
| | | |
| | | # æÂ¥å¿Â模åÂÂï¼ÂæÂ¯å¦å¯ç¨æÂ¥è¯¢ on:å¯ç¨ off:ç¦Âç¨ |
| | | log.query.switch=off |
| | | period=1 |
| | | # æÂ¥å¿Â模åÂÂï¼Âå®ÂæÂÂå é¤æÂ¥å¿ÂæÂ¶ï¼ÂæÂ¯æÂÂçÂÂå¯éÂÂå¼@|
| | | log.save.periods=\ufeff1\#\u4e00\u4e2a\u6708\:\:2\#\u4e24\u4e2a\u6708\:\:3\#\u4e09\u4e2a\u6708\:\:6\#\u534a\u5e74\:\:12\#\u4e00\u5e74\:\:18\#\u4e00\u5e74\u534a\:\:24\#\u4e24\u5e74 |
| | | # æÂ¥å¿Â模åÂÂï¼ÂÃ¥ÂÂ页æÂ¥è¯¢æÂ¶ï¼Â页æÂ°æÂ®å¤§å° |
| | | log.query.pagesize=30 |
| | | # æÂ¥å¿Â模åÂÂï¼ÂæÂ¯å¦å¯ç¨å®ÂæÂ¶å é¤æÂ¥å¿ Y:å¯ç¨ N:ç¦Âç¨ |
| | | log.delete.auto=N |
| | | # æÂ¥å¿Â模åÂÂï¼Âå®ÂæÂ¶å é¤æÂ¥å¿ÂæÂ¶ï¼Âè¦Âä¿ÂçÂÂæÂÂè¿ÂçÂÂ天æÂ° |
| | | log.autoDelete.rate=7 |
| | | # æÂ¥å¿Âå é¤æÂ¶é´ |
| | | log.autoDelete.time=0\:\:0\:\:0 |
| | | |
| | | ########################################### å¹³å°UIF éÂÂè¦ÂçÂÂéÂ
Âç½® BEGIN ########################################### |
| | | #æÂ°æÂ®æÂÂéÂÂæÂ¯å¦çÂÂæÂ on:å¼Âå¯ offï¼ÂÃ¥Â
³é |
| | | right.switch=off |
| | | #Ã¥ÂÂè½模åÂÂæÂÂæÂÂéªÂè¯ÂæÂ¯å¦记 onï¼Âå¼Âå¯ offï¼ÂÃ¥Â
³é |
| | | function.right.swith=on |
| | | #UIæÂÂæÂÂæÂ¯å¦çÂÂæÂ on:å¼ÂæÂ· offï¼ÂÃ¥Â
³é |
| | | ui.right.swith=false |
| | | # tablePanel é»Â认æÂ¯æÂÂçÂÂpageSizeÃ¥ÂÂ表 |
| | | tablePanel.pageSizeList=100,200,300,500,800,1000 |
| | | #Ã¥ÂÂçÂ
§æÂ§ä»¶ï¼Âå¨éÂÂæÂÂæÂ¶ï¼Âå¯èªå®Âä¹ÂÃ¥ÂÂçÂ
§æÂ¹å¼Âï¼Âå¼为类 |
| | | engin.refObjectChoose = |
| | | # ç³»ç»Âä¿¡æÂ¯æÂÂ示æ¡ÂæÂ¾ç¤ºæÂ¹å¼ popup:å¼¹åº桠;lowerRight:å³ä¸Âè§Âã é»Â认为å³ä¸Âè§ |
| | | PromptMessage.DisplayModes=popup |
| | | # å¦ÂæÂÂå¨å³ä¸Âè§ÂæÂ¾ç¤ºç³»ç»Âæ¶ÂæÂ¯æÂ¶ï¼Â设置æ¶ÂæÂ¯çªÂå£çÂÂæÂ¾ç¤ºæÂ¶é´ï¼Â毫ç§ÂãÂÂé»Â认为3000毫秠|
| | | PromptMessage.DisplayTime=3000 |
| | | #Ã¥ÂÂç±»æ Â导èªæÂ¶ï¼ÂæÂ¯æÂÂçÂÂäºÂä»¶åÂÂç§° |
| | | uidesign.eventKey=SelectionEvent,DBClickEvent,ClickEvent |
| | | # é¦Â页èªå®Âä¹Âç±»ï¼Âå¯以æÂÂå¤Âç»Âï¼Âæ¯Âç»Âä¹Âé´ç¨åÂÂå·;Ã¥ÂÂéÂÂï¼Âèªå®Âä¹Âç±»ä¸Âæ Âé¢Âä¹Âé´ç¨éÂÂå·,Ã¥ÂÂé |
| | | # æ ¼å¼Âï¼Âèªå®Âä¹Âç±»å®ÂæÂ´è·¯å¾Â1,æ Âé¢Â1ï¼ÂUNOCIDEæ ¼å¼Âï¼Â,徿 ÂæÂÂä»¶å®ÂæÂ´è·¯å¾Â.;èªå®Âä¹Âç±»å®ÂæÂ´è·¯å¾Â2,æ Âé¢Â2ï¼ÂUNOCIDEæ ¼å¼Âï¼Â,徿 ÂæÂÂä»¶å®ÂæÂ´è·¯å¾Â; |
| | | # 示ä¾Âï¼Âplm617.engine.HomePageForTaskMessagePanel,\u6211\u7684\u6d88\u606f\u0096\u0087, |
| | | #HomePageClasses=plm.uif.engine.client.UILayoutPanel?type=workitem&context=workItemHomePage,\u6211\u7684\u6d88\u606f\u0096\u0087,/com/vci/base/ui/image/email.png |
| | | ########################################### å¹³å°UIF éÂÂè¦ÂçÂÂéÂ
Âç½® END ########################################### |
| | | |
| | | |
| | | ########################################### ç¼Âç Âå éÂÂçÂÂä¸Âç¨éÂ
Âç½® BEGIN ########################################### |
| | | Code.Accelerator.Rule.Keys=name;changeorder;btmName |
| | | Code.Accelerator.Section.Keys=id;name;btmName |
| | | Code.Accelerator.AttrMap=id=\u540d\u79f0;name=\u63cf\u8ff0;btmName=ç±»åÂÂÃ¥ÂÂç§° |
| | | ########################################### ç¼Âç Âå éÂÂçÂÂä¸Âç¨éÂ
Âç½® END ########################################### |
| | | |
| | | |
| | | ########################################### å·¥ä½ÂæµÂ&æµÂç¨Âå¼ÂæÂÂç¸åÂ
³éÂ
Âç½® BEGIN ########################################### |
| | | #å·¥ä½ÂæµÂæÂÂä»¶ï¼ÂÃ¥Â
³èÂÂå¹³å°workitem对象çÂÂæÂÂä½ |
| | | workflow.plmworkitem = com.vci.platform.workflow.plugins.PLMWorkItem |
| | | workflow.AssignTask = com.vci.rmip.workflow.server.event.AssignTask |
| | | #å·¥ä½ÂæµÂ设置任å¡åÂÂéÂÂ人 |
| | | jbpm4.engin.checkTaskUser = com.vci.rmip.workflow.server.ExImp.ExAssginImp |
| | | #æÂ¤ç±»ç¨äºÂè§£æÂÂè§Âè²åÂÂé¨é¨ä¸ÂçÂÂç¨æÂ· |
| | | workflow.userService = com.vci.rmip.workflow.server.customInterfaceImpl.WorkFlowUserParserImpl |
| | | #å·¥ä½ÂæµÂæÂÂä»¶ï¼ÂÃ¥Â
³èÂÂå¹³å°workitem对象çÂÂæÂÂä½ |
| | | workflow.plmworkitem = com.vci.platform.workflow.plugins.PLMWorkItem |
| | | #æÂ¯å¦åÂ
·æÂÂworkflowinstance对象 Y代表åÂÂå¨ï¼ÂN代表ä¸ÂÃ¥ÂÂå¨ |
| | | workflow.plmworkflowInstance.isExist=Y |
| | | # æµÂç¨Â模æÂ¿ä¸ÂçÂÂä»»å¡èÂÂç¹æÂ¯æÂÂèªå®Âä¹Âä¸Âå¡åÂÂè½æÂÂé®çÂÂéÂ
Âç½®éÂÂ项 |
| | | workflow.business.function.class=plm.portal.NewNewUI.buttonmng.TaskBusinessFunctionButtonDialog |
| | | |
| | | #æÂ¯å¦æÂ¾ç¤ºåÂÂæÂ¡åÂÂèµ·æµÂç¨ÂæÂÂé®ï¼Âtrue:æÂ¾ç¤ºï¼Âfalse:ä¸ÂæÂ¾ç¤º |
| | | workflow.workitem.launchFlag=false |
| | | #æ ¹æÂ®ä¸Âé¢çÂÂå±ÂæÂ§å¼å¤æÂÂæÂ¯å¦æÂ¾ç¤ºä¿ÂÃ¥ÂÂæµÂç¨Â模æÂ¿éÂÂæÂ©æ¡Âï¼Âtrue表示æÂ¾ç¤º |
| | | workflow.workitem.saveTempFlag=false |
| | | #Ã¥ÂÂèµ·æµÂç¨ÂæµÂç¨Âä»»å¡åÂÂç§°æÂ¯å¦å¿Â
å¡«åÂÂå½åÂÂå¤ÂçÂÂè§Âå |
| | | workflow.workitem.workflowName=true |
| | | #å¦ÂæÂÂä¸ÂæÂ¾ç¤ºåÂÂæÂ¡åÂÂèµ·æÂ¶ï¼ÂæÂ¯å¦å°ÂéÂÂå®ÂæÂ°æÂ®ä½Â为ä¸Â个æµÂç¨Âè¿Âè¡Â审æÂ¹ æÂ¤éÂ
Âç½®ä¼ÂÃ¥Â
Â级å¨æÂ¾ç¤ºåÂÂæÂ¡åÂÂèµ·éÂÂæÂ©æ¡Âå¹¶éÂÂä¸ÂÃ¥ÂÂæÂ¡åÂÂèµ·æµÂç¨Âä¹ÂÃ¥ÂÂï¼Âå³å¦ÂæÂÂéÂÂæÂ©åÂÂæÂ¡åÂÂèµ·ï¼ÂæÂ¤éÂ
Âç½®ä¸Âèµ·ä½Âç¨@|
| | | #ï¼Âtrueï¼Âå°ÂéÂÂå®ÂçÂÂæÂ°æÂ®å¨ä¸Â个æµÂç¨Âä¸Âè¿Âè¡Â审æÂ¹ï¼Âfalseï¼Â为æ¯ÂæÂ¡æÂ°æÂ®å¯å¨ä¸Â个审æÂ¹æµÂç¨Âï¼ |
| | | workflow.workitem.launchOneWorkflowFlag=true |
| | | #æÂ¯å¦è½æÂ¹éÂÂæÂ§è¡Âå¾Â
Ã¥ÂÂä»»å¡ï¼ÂéÂÂä¸Âå¤ÂæÂ¡éÂÂç¨å¾Â
Ã¥ÂÂä»»å¡æÂ°æÂ®ï¼Â夿ÂÂè¿ÂäºÂæÂ°æÂ®å¨åÂÂä¸Âä»»å¡èÂÂç¹ï¼Âå¹¶å±ÂäºÂÃ¥ÂÂä¸ÂæµÂç¨Âï¼Âå°±å¯以æÂ¹éÂÂæÂ§è¡Âä¸Âå» |
| | | workflow.workitem.batchExeworkflowFlag=true |
| | | |
| | | ##æ ¹æÂ®ä¸Âé¢çÂÂå±ÂæÂ§å¼å¤æÂÂæÂ¯å¦ä¸Âä¸ÂæÂ¥è´£ä»»äººæ Âè¯Âï¼Âåªå¤æÂÂæÂ¯trueï¼Âä»»ä½ÂÃ¥ÂÂ符æÂÂ没æÂÂæÂ¤éÂ
Âç½®ï¼Â峿ÂÂfalseå¤ÂçÂÂï¼ |
| | | ## å¦ÂæÂÂæÂ¤å¼为ï¼Âtrueï¼ÂæÂ§è¡ÂæµÂç¨Âä»»å¡æÂ¶ï¼Âä¸Â管åÂÂèµ·æÂ¶æÂ¯å¦对æ¯Â个èÂÂç¹é½设置äºÂ责任人ï¼Âå½ÂÃ¥ÂÂæÂ§è¡ÂçªÂå£å§Âç»Âé½æÂ¾ç¤ºå¨éÂÂæÂ©ä¸Âä¸ÂèÂÂç¹责任人ï¼Âä»Â
æÂ¯è·¯ç±éÂÂæÂ©åÂÂæÂÂï¼ |
| | | ## å¦åÂÂï¼Âfalseï¼ÂæÂ§è¡ÂæµÂç¨Âä»»å¡æÂ¶ï¼Âå¦ÂæÂÂä¸Âä¸ÂèÂÂç¹çÂÂ责任人å¨åÂÂèµ·æÂ¶å·²ç»ÂæÂÂå®Âï¼ÂÃ¥ÂÂä¸ÂæÂ¾ç¤ºä¸Âä¸ÂèÂÂç¹责任人ï¼Âå¦åÂÂæÂ¾ç¤ºä¸Âä¸ÂæÂ¥è´£ä»»äººï¼Âä¸ÂæÂÂå 红è²*æ Âè¯Âï¼ÂæÂ¤æÂ¶ä¸ºå¿Â
须填åÂÂï¼ÂéÂÂæÂ©ï¼ |
| | | workflow.workitem.showNextUserFlag=false |
| | | ########################################### å·¥ä½ÂæµÂ&æµÂç¨Âå¼ÂæÂÂç¸åÂ
³éÂ
Âç½® END ########################################### |
| | | |
| | | |
| | | ########################################### CSç³»ç»Â主æÂÂæÂ¶æÂ¯æÂÂçÂÂæÂ©å±ÂæÂÂå¡ BEGIN ########################################### |
| | | # ç»å½ÂæÂÂÃ¥ÂÂÃ¥ÂÂ使ç¨åÂÂå°ÂæÂºå¶ï¼Âèªå¨æÂ§è¡Â该类ä¸ÂçÂÂÃ¥Â
ŒÂ
±æÂ¥å£ showMessage() ï¼ÂæÂ åÂÂæÂ°ä¼ éÂÂï¼ |
| | | # 以æÂ¯æÂÂç»å½ÂæÂÂÃ¥ÂÂÃ¥ÂÂç«Âå³æÂ§è¡Âç¸åÂ
³èªå®Âä¹ÂæÂ©å±Âé»è¾Â# |
| | | #e.g:extendservice.0=xxx.xx.xx |
| | | extendservicecount=0 |
| | | #extendservice.0= |
| | | #extendservice.1= |
| | | #extendservice.1= |
| | | ########################################### CSç³»ç»Â主æÂÂæÂ¶æÂ¯æÂÂçÂÂæÂ©å±ÂæÂÂå¡ END ########################################### |
| | | |
| | | |
| | | ########################################### UI&Ã¥Â
ÂæÂ°æÂ®ï¼Â模åÂÂï¼Âç¼ÂÃ¥ÂÂç¸åÂ
³çÂÂéÂ
Âç½® BEGIN ########################################### |
| | | #å¯ç¨UIç¼ÂÃ¥ÂÂÃ¥ÂÂç¼ÂÃ¥ÂÂå®ÂæÂ¶å·æÂ°æÂÂå¡ |
| | | UI.cache.enable=true |
| | | #æÂ¯å¦æ¯Â次访é®é½å·æÂ°æÂ°æÂ®åºÂï¼Âtrue代ç Âå·æÂ°ï¼Âå¦åÂÂä¸Âå·æÂ° |
| | | UI.cache.refreshEveryTime=true |
| | | #å®ÂæÂ¶å¨ï¼Â卿ÂÂå¡å¯å¨æÂ¶å¼Âå¯ |
| | | time_schedule_count=2 |
| | | #å 载æÂ°æÂ®æ¨¡åÂÂå°ç¼Âå |
| | | time_schedule_0=com.vci.cache.server.util.DataModelCacheTimer |
| | | #å 载UIéÂ
Âç½®å°ç¼Âå |
| | | time_schedule_1=plm.portal.tools.UICacheTimer |
| | | ########################################### UI&Ã¥Â
ÂæÂ°æÂ®ï¼Â模åÂÂï¼Âç¼ÂÃ¥ÂÂç¸åÂ
³çÂÂéÂ
Âç½® END ########################################### |
| | |
| | | |
| | | <property name="connection.url">jdbc:oracle:thin:@192.168.0.66:1521:orcl</property> |
| | | <property name="connection.username">PLT2024</property> |
| | | <!-- <property name="connection.username">NMPM112</property> --> |
| | | <property name="connection.password">vcitest</property> |
| | | <!--<property name="connection.username">mpm112</property> |
| | | <property name="connection.password">vcitest</property>--> |
| | |
| | | <property name="hibernate.current_session_context_class">com.vci.server.mw.SessionContext4JBPM</property> |
| | | <property name="hibernate.connection.isolation">2</property> |
| | | |
| | | <!-- framework映射文件 --> |
| | | <mapping resource="com/vci/server/framework/hbm/AppConfigCategory.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/AppConfigDetail.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Combination.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/CombinationValue.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Department.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Role.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/User.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Function.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Operate.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/RoleRight.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/PasswordStrategy.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/UserLogon.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/SystemCfg.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/SpecialChar.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/SpecialCharClfy.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Log.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/MachSecurity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/framework/hbm/Pvolume.hbm.xml"/> |
| | | |
| | | <!-- QT映射文件 --> |
| | | <mapping resource="com/vci/server/omd/qt/hbm/QT.hbm.xml"/> |
| | | |
| | | <!-- portal_START--> |
| | | <mapping resource="com/vci/server/portal/hbm/PLActionClsEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLActionParamEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLTypeActionEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PortalVIEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLActionEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLUILayoutEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLTabPageEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLTabButtonEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLCommandParameterEntity.hbm.xml"/> |
| | | <mapping resource="com/vci/server/portal/hbm/PLPageDefinationEntity.hbm.xml"/> |
| | | <!-- portal_END--> |
| | | |
| | | <!-- workflow映射文件 --> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/ProcessCategory.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/Plflowapproveopinion.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/PLFlowObject.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/NodeHide.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/TaskDesc.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/TaskRevoke.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/TasksAssigned.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/FlowApproveContent.hbm.xml"/> |
| | | <mapping resource="jbpm.repository.hbm.xml"/> |
| | | <mapping resource="jbpm.execution.hbm.xml"/> |
| | | <mapping resource="jbpm.history.hbm.xml"/> |
| | | <mapping resource="jbpm.task.hbm.xml"/> |
| | | <mapping resource="jbpm.identity.hbm.xml"/> |
| | | |
| | | <mapping resource="com/vci/server/workflow/server/hbm/Plwfinstancetemplate.hbm.xml"/> |
| | | <mapping resource="com/vci/server/workflow/server/hbm/Plwfpersonset.hbm.xml"/> |
| | | |
| | | <!-- 暂时禁用Hibernate的事件监听 |
| | | <listener type="post-insert" |
| | |
| | | #NameService=PLT |
| | | Endpoints=default -h 127.0.0.1 -p 4601 |
| | | #Endpoints=VCI-PLT/Locator:default -h 172.16.0.127 -p 4061 |
| | | Endpoints=default -h localhost -p 4601 |
| | | #Endpoints=PLTGrid/Locator:default -h 172.16.0.85 -p 4061 |
| | |
| | | # \u5728borrow\u4e00\u4e2ajedis\u5b9e\u4f8b\u65f6\uff0c\u662f\u5426\u63d0\u524d\u8fdb\u884cvalidate\u64cd\u4f5c |
| | | redis.jedisPoolConfig.testOnBorrow=true |
| | | |
| | | |
| | | redis.jedisPoolConfig.auth=foobared |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Services> |
| | | <ServiceTempl name="CacheService" entry="com.vci.server.cache.CacheServerImpl" description="缓存服务" /> |
| | | <ServiceTempl name="LogService" entry="com.vci.server.log.LogServiceImpl" description="日志服务" /> |
| | | <ServiceTempl name="FrameService" entry="com.vci.server.framework.FrameworkServiceImpl" description="系统框架服务" /> |
| | | <ServiceTempl name="OMDService" entry="com.vci.server.omd.OMDServiceImpl" description="对象模型定义服务" /> |
| | | <ServiceTempl name="BOFServer" entry="com.vci.server.bof.BOFactoryServiceImpl" description="对象工厂服务" /> |
| | |
| | | <version>1.0-SNAPSHOT</version> |
| | | <type>pom</type> |
| | | </dependency> |
| | | <!-- ddd--> |
| | | <dependency> |
| | | <groupId>com.vci.corba</groupId> |
| | | <artifactId>plt-slice</artifactId> |
| | |
| | | <artifactId>ddlTool-common</artifactId> |
| | | <version>${vciplt.version}</version> |
| | | </dependency> |
| | | <!-- ddd--> |
| | | <dependency> |
| | | <groupId>com.vci.client</groupId> |
| | | <artifactId>plt-clientbase</artifactId> |
| | | <version>1.0.RELEASE</version> |
| | | </dependency> |
| | | <!-- ddd--> |
| | | <dependency> |
| | | <groupId>com.zeroc</groupId> |
| | | <artifactId>icegridgui</artifactId> |
| | | <version>1.0.RELEASE</version> |
| | | </dependency> |
| | | <!-- dd--> |
| | | <dependency> |
| | | <groupId>com.vci.common</groupId> |
| | | <artifactId>plt-common</artifactId> |
| | |
| | | <artifactId>vci-platform-starter</artifactId> |
| | | <version>2022.1-SNAPSHOT</version> |
| | | </dependency> |
| | | <!-- ddd--> |
| | | <dependency> |
| | | <groupId>com.vci.client</groupId> |
| | | <artifactId>plt-client</artifactId> |
| | |
| | | package com.vci.frameworkcore.compatibility; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; |
| | | import com.vci.frameworkcore.pagemodel.MenuVO; |
| | |
| | | * @param resourceControlTypeEnum 角色控制区域,也是功能控制的区域 |
| | | * @return 菜单,包含上下级 |
| | | */ |
| | | List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws VCIError; |
| | | List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException; |
| | | |
| | | /** |
| | | * 获取所有的功能菜单 |
| | |
| | | */ |
| | | DataGrid<SmFunctionVO> gridFunctionByRoleOids(Collection<String> roleOidCollection, Map<String, String> queryMap, PageHelper pageHelper, ResourceControlTypeEnum resourceControlTypeEnum); |
| | | |
| | | UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum bs) throws VCIError; |
| | | UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum bs) throws PLException; |
| | | } |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.framework.data.FunctionInfo; |
| | | import com.vci.corba.portal.data.PLTabPage; |
| | |
| | | * @return 菜单,包含上下级 |
| | | */ |
| | | @Override |
| | | public List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws VCIError { |
| | | public List<MenuVO> treeCurrentUserMenu(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException { |
| | | SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); |
| | | // if(sessionInfo == null || CollectionUtils.isEmpty(sessionInfo.getFunctionOids())){ |
| | | // return new ArrayList<Tree>(); |
| | |
| | | // PortalServicePrx uiService = ServiceProvider.getUIService(); |
| | | // FrameworkServicePrx frameService = ServiceProvider.getFrameService(); |
| | | FunctionInfo[] menus = ServiceProvider.getFrameService().getModuleListByParentId("modelManagmentNode", true); |
| | | // FunctionInfo[] menus = ServiceProvider.getFrameService().("modelManagmentNode", true); |
| | | |
| | | // PLAction[] allPLAction = uiService.getAllPLAction(); |
| | | List<MenuVO> functionVOList = new ArrayList<>(); |
| | |
| | | return functionVOList.stream().sorted(Comparator.comparing(s -> s.getSort())).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<MenuVO> findChildFunctionVO(String parentOid) throws VCIError { |
| | | public List<MenuVO> findChildFunctionVO(String parentOid) throws PLException { |
| | | FunctionInfo[] menus = ServiceProvider.getFrameService().getModuleListByParentId(parentOid, true); |
| | | List<MenuVO> functionVOList = new ArrayList<>(); |
| | | for (FunctionInfo menu : menus) { |
| | |
| | | |
| | | |
| | | @Override |
| | | public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws VCIError { |
| | | public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException { |
| | | SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); |
| | | // if(sessionInfo == null || CollectionUtils.isEmpty(sessionInfo.getFunctionOids())){ |
| | | // return new ArrayList<Tree>(); |
| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; |
| | | import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; |
| | |
| | | */ |
| | | @VciUnCheckRight |
| | | @GetMapping("/treeMyMenu") |
| | | public List<MenuVO> treeMyMenu(TreeQueryObject treeQueryObject) throws VCIError { |
| | | public List<MenuVO> treeMyMenu(TreeQueryObject treeQueryObject) throws PLException { |
| | | return functionQueryService.treeCurrentUserMenu(treeQueryObject, ResourceControlTypeEnum.BS); |
| | | } |
| | | |
| | |
| | | */ |
| | | @VciUnCheckRight |
| | | @GetMapping("/getUIContentByBtmTypeAndId") |
| | | public UIContentVO getUIContentByBtmTypeAndId(@RequestBody TreeQueryObject treeQueryObject) throws VCIError { |
| | | public UIContentVO getUIContentByBtmTypeAndId(@RequestBody TreeQueryObject treeQueryObject) throws PLException { |
| | | return functionQueryService.getUIContentByBtmTypeAndId(treeQueryObject, ResourceControlTypeEnum.BS); |
| | | } |
| | | |
| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; |
| | | import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; |
| | |
| | | @VciUnCheckRight |
| | | @GetMapping("/getTreeMyMenu") |
| | | @ResponseBody |
| | | public List<MenuVO> getTreeMyMenu(TreeQueryObject treeQueryObject) throws VCIError { |
| | | public List<MenuVO> getTreeMyMenu(TreeQueryObject treeQueryObject) throws PLException { |
| | | return functionQueryService.treeCurrentUserMenu(treeQueryObject, ResourceControlTypeEnum.BS); |
| | | } |
| | | } |
| | |
| | | * @return 执行的结果 |
| | | */ |
| | | @DeleteMapping("/deleteData") |
| | | @VciUnCheckRight |
| | | @VciBusinessLog(operateName = "删除数据",description = "${param.dataList.0.btmname}的${param.dataList.${join}.oid}") |
| | | public BaseResult deleteData(@RequestBody DeleteDataDTO deleteDataDTO){ |
| | | return uiDataService.batchDelete(deleteDataDTO); |
| | |
| | | package com.vci.web.other; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.starter.web.constant.QueryOptionConstant; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | |
| | | operation.batchUpdateBuinessObject(allCodeList.toArray(new ClientBusinessObject[0])); |
| | | logger.info("编码生命周期恢复完成"); |
| | | } |
| | | } catch (VCIError e) { |
| | | } catch (PLException | VCIError e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | |
| | | package com.vci.web.service; |
| | | |
| | | import com.vci.corba.omd.atm.AttributeDef; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.web.pageModel.OsAttributeVO; |
| | |
| | | * @param attribItems 数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | List<OsAttributeVO> attributeDO2VOs(Collection<com.vci.corba.omd.atm.AttribItem> attribItems); |
| | | List<OsAttributeVO> attributeDO2VOs(Collection<AttributeDef> attribItems); |
| | | |
| | | /** |
| | | * 属性的数据对象转换为显示对象 |
| | | * @param attribItem 数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | OsAttributeVO attributeDO2VO(com.vci.corba.omd.atm.AttribItem attribItem); |
| | | OsAttributeVO attributeDO2VO(AttributeDef attribItem); |
| | | |
| | | /** |
| | | * 属性的显示对象转换为数据对象 |
| | |
| | | package com.vci.web.service; |
| | | |
| | | import com.vci.corba.omd.btm.BizType; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.web.pageModel.*; |
| | | import com.vci.corba.omd.btm.BtmItem; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @param btmItems 数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | List<OsBtmTypeVO> btmDO2VOs(Collection<BtmItem> btmItems); |
| | | List<OsBtmTypeVO> btmDO2VOs(Collection<BizType> btmItems); |
| | | |
| | | /** |
| | | * 数据对象转换为显示对象 |
| | | * @param btmItem 数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | OsBtmTypeVO btmDO2VO(BtmItem btmItem); |
| | | OsBtmTypeVO btmDO2VO(BizType btmItem); |
| | | |
| | | /** |
| | | * 使用编号获取业务类型 |
| | |
| | | package com.vci.web.service; |
| | | import com.vci.corba.omd.etm.EnumType; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | |
| | | * @param enumItems 枚举的对象 |
| | | * @return 显示对象 |
| | | */ |
| | | List<OsEnumVO> enumDO2VOs(Collection<EnumItem> enumItems); |
| | | List<OsEnumVO> enumDO2VOs(Collection<EnumType> enumItems); |
| | | |
| | | /** |
| | | * 枚举的数据对象转换为显示对象 |
| | | * @param enumItem 数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | OsEnumVO enumDO2VO(EnumItem enumItem); |
| | | OsEnumVO enumDO2VO(EnumType enumItem); |
| | | |
| | | /** |
| | | * 枚举明细转换为KV |
| | |
| | | * 批量添加内容 |
| | | * @param enumItemList 枚举的内容 |
| | | */ |
| | | void batchAddEnum(List<EnumItem> enumItemList); |
| | | void batchAddEnum(List<EnumType> enumItemList); |
| | | |
| | | /** |
| | | * 批量修改内容 |
| | | * @param enumItemList 枚举的内容 |
| | | */ |
| | | void batchEditEnum(List<EnumItem> enumItemList); |
| | | void batchEditEnum(List<EnumType> enumItemList); |
| | | |
| | | /** |
| | | * 使用编号获取枚举的名称 |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.atm.AttributeDef; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | | import com.vci.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | |
| | | //后面两个分页数,完全没有用 |
| | | try { |
| | | // return attributeDO2VOs(Arrays.stream(platformClientUtil.getAttributeService().getAttribItems(abFilter,1,1)).collect(Collectors.toList())); |
| | | return attributeDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getAttributeService().getAttribItems(abFilter.name,1,1)).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | // return attributeDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getAttributeService().getAttribItems(abFilter.name,1,1)).collect(Collectors.toList())); |
| | | return attributeDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getAttributeService().getAttributeDefs(abFilter.name,1,1)).collect(Collectors.toList())); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public List<OsAttributeVO> attributeDO2VOs(Collection<com.vci.corba.omd.atm.AttribItem> attribItems) { |
| | | public List<OsAttributeVO> attributeDO2VOs(Collection<AttributeDef> attribItems) { |
| | | List<OsAttributeVO> vos = new ArrayList<>(); |
| | | Optional.ofNullable(attribItems).orElseGet(()->new ArrayList<>()).stream().forEach(attribItem -> { |
| | | vos.add(attributeDO2VO(attribItem)); |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public OsAttributeVO attributeDO2VO(com.vci.corba.omd.atm.AttribItem attribItem) { |
| | | public OsAttributeVO attributeDO2VO(AttributeDef attribItem) { |
| | | OsAttributeVO attributeVO = new OsAttributeVO(); |
| | | if(attribItem!=null){ |
| | | attributeVO.setOid(attribItem.oid); |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.btm.BizType; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | | import com.vci.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import com.vci.corba.omd.btm.BtmItem; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | public List<OsBtmTypeVO> selectAllBtm() { |
| | | try { |
| | | // return btmDO2VOs(Arrays.stream(platformClientUtil.getBtmService().getAllBtmItem("")).collect(Collectors.toList())); |
| | | return btmDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getBTMService().getAllBtmItem("")).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | // return btmDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getBTMService().getAllBtmItem("")).collect(Collectors.toList())); |
| | | return btmDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getBTMService().getBizTypes("")).collect(Collectors.toList())); |
| | | } catch (PLException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public List<OsBtmTypeVO> btmDO2VOs(Collection<BtmItem> btmItems) { |
| | | public List<OsBtmTypeVO> btmDO2VOs(Collection<BizType> btmItems) { |
| | | List<OsBtmTypeVO> VOS = new ArrayList<>(); |
| | | Optional.ofNullable(btmItems).orElseGet(()->new ArrayList<>()).stream().forEach(btmItem -> { |
| | | OsBtmTypeVO vo = btmDO2VO(btmItem); |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public OsBtmTypeVO btmDO2VO(BtmItem btmItem) { |
| | | public OsBtmTypeVO btmDO2VO(BizType btmItem) { |
| | | OsBtmTypeVO vo = new OsBtmTypeVO(); |
| | | if(btmItem !=null){ |
| | | vo.setOid(btmItem.oid); |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.etm.EnumType; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | | import com.vci.starter.web.enumpck.UserSecretEnum; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | |
| | | import com.vci.web.constant.EnumIdConstant; |
| | | import com.vci.web.pageModel.*; |
| | | import com.vci.web.service.*; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import com.vci.web.util.WebUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.util.HtmlUtils; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | import com.vci.corba.omd.etm.EnumChild; |
| | | import com.vci.corba.omd.etm.EnumItem; |
| | | import plm.corba.enumManager.EnumItemFilter; |
| | | |
| | |
| | | EnumItemFilter filter = new EnumItemFilter(""); |
| | | //后面两个参数居然完全没有作用 |
| | | try { |
| | | return enumDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getEnumService().getEmItems("",1,1)).collect(Collectors.toList())); |
| | | // return enumDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getEnumService().getEmItems("",1,1)).collect(Collectors.toList())); |
| | | return enumDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getEnumService().getEnumTypes("",1,1)).collect(Collectors.toList())); |
| | | //return enumDO2VOs(Arrays.stream(platformClientUtil.getEnumService().getEmItems(filter,1,1)).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public List<OsEnumVO> enumDO2VOs(Collection<EnumItem> enumItems) { |
| | | public List<OsEnumVO> enumDO2VOs(Collection<EnumType> enumItems) { |
| | | List<OsEnumVO> enumVOS = new ArrayList<>(); |
| | | Optional.ofNullable(enumItems).orElseGet(()->new ArrayList<>()).stream().forEach(enumItem -> { |
| | | OsEnumVO enumVO = enumDO2VO(enumItem); |
| | |
| | | * @return 显示对象 |
| | | */ |
| | | @Override |
| | | public OsEnumVO enumDO2VO(EnumItem enumItem) { |
| | | public OsEnumVO enumDO2VO(EnumType enumItem) { |
| | | OsEnumVO enumVO = new OsEnumVO(); |
| | | if(enumItem!=null){ |
| | | enumVO.setOid(enumItem.oid); |
| | |
| | | } |
| | | List<OsEnumItemVO> itemVOS = new ArrayList<>(); |
| | | Map<String,String> itemVOMap = new HashMap<>(); |
| | | if(enumItem.children!=null && enumItem.children.length > 0){ |
| | | for(int i = 0 ; i < enumItem.children.length ; i ++){ |
| | | if(enumItem.items!=null && enumItem.items.length > 0){ |
| | | for(int i = 0 ; i < enumItem.items.length ; i ++){ |
| | | OsEnumItemVO enumItemVO = new OsEnumItemVO(); |
| | | EnumChild enumChild = enumItem.children[i]; |
| | | EnumItem enumChild = enumItem.items[i]; |
| | | enumItemVO.setId(enumChild.value); |
| | | enumItemVO.setName(enumChild.name); |
| | | enumItemVO.setDescription(enumChild.description); |
| | |
| | | * @param enumItemList 枚举的内容 |
| | | */ |
| | | @Override |
| | | public void batchAddEnum(List<EnumItem> enumItemList) { |
| | | public void batchAddEnum(List<EnumType> enumItemList) { |
| | | if(!CollectionUtils.isEmpty(enumItemList)){ |
| | | enumItemList.stream().forEach(enumItem -> { |
| | | try { |
| | | ServiceProvider.getOMDService().getEnumService().addEmItem(enumItem); |
| | | } catch (VCIError e) { |
| | | ServiceProvider.getOMDService().getEnumService().addEnumType(enumItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }); |
| | |
| | | * @param enumItemList 枚举的内容 |
| | | */ |
| | | @Override |
| | | public void batchEditEnum(List<EnumItem> enumItemList) { |
| | | public void batchEditEnum(List<EnumType> enumItemList) { |
| | | if(!CollectionUtils.isEmpty(enumItemList)){ |
| | | enumItemList.stream().forEach(enumItem -> { |
| | | try { |
| | | ServiceProvider.getOMDService().getEnumService().modifyEmItem(enumItem); |
| | | } catch (VCIError e) { |
| | | // ServiceProvider.getOMDService().getEnumService().modifyEmItem(enumItem); |
| | | ServiceProvider.getOMDService().getEnumService().modifyEnumType(enumItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }); |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.lcm.LifeCycle; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | |
| | | // LifeCyle[] lifeCyles = platformClientUtil.getLifeCycleService().getLifeCyles(); |
| | | LifeCycle[] lifeCyles = ServiceProvider.getOMDService().getLifeCycleService().getLifeCycles(); |
| | | return lifeCycleDO2VOs(Arrays.stream(lifeCyles).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | if(logger.isErrorEnabled()){ |
| | | // logger.error(vciError.error_code,vciError); |
| | | } |
| | |
| | | com.vci.corba.omd.lcm.TransitionVO transitionVO = lifeCycleLineVO2DO(lineVO); |
| | | // platformClientUtil.getBOFactoryService().transferBusinessObject(new BusinessObjectHolder(obj), transitionVO); |
| | | ServiceProvider.getBOFService().transferBusinessObject(obj, transitionVO); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }else{ |
| | |
| | | // bos, vos, releaseStatus); |
| | | ServiceProvider.getBOFService().batchTransferBusinessObjectAndRelease( |
| | | bos, vos, releaseStatus); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | }else{ |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.query.data.KV; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | |
| | | try { |
| | | // return statusDO2VOs(Arrays.stream(platformClientUtil.getStatePoolService().getStatePools()).collect(Collectors.toList())); |
| | | return statusDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getStateService().getStatePools()).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.lcm.LifeCycle; |
| | | import com.vci.file.pagemodel.VciFileObjectVO; |
| | | import com.vci.frameworkcore.lcstatuspck.FrameworkDataLCStatus; |
| | | import com.vci.frameworkcore.lcstatuspck.ReleaseDataLCStatus; |
| | | import com.vci.omd.constants.SystemAttribute; |
| | | import com.vci.starter.revision.bo.TreeWrapperOptions; |
| | | import com.vci.starter.web.annotation.bus.VciChangeDataAfter; |
| | | import com.vci.starter.web.annotation.bus.VciChangeDataBefore; |
| | |
| | | com.vci.client.bof.ClientBusinessObject afterCBO = null; |
| | | try { |
| | | // BusinessObject resultBO = platformClientUtil.getBOFactoryService().createBusinessObject(resultCbo.getObj().getBusinessObject(),false,false); |
| | | // com.vci.corba.omd.data.BusinessObject resultBO = ServiceProvider.getBOFService().createBusinessObject(resultCbo.getObj().getBusinessObject(),false,false); |
| | | com.vci.corba.omd.data.BusinessObject resultBO = ServiceProvider.getBOFService().createBusinessObject(resultCbo.getObj().getBusinessObject(),false,false); |
| | | afterCBO = new com.vci.client.bof.ClientBusinessObject(); |
| | | afterCBO.setBusinessObject(resultBO); |
| | | result.setObj(boService.cbo2Map(afterCBO)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(formDataDTO.getReleaseFileOids())){ |
| | |
| | | try { |
| | | // platformClientUtil.getBOFactoryService().deleteBusinessObject(afterCBO.getBusinessObject(),1); |
| | | ServiceProvider.getBOFService().deleteBusinessObject(afterCBO.getBusinessObject(),1); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | throw new VciBaseException(LangBaseUtil.getErrorMsg(e),new String[]{},e); |
| | |
| | | Map<String,String> baseDataMap = formDataDTO2MapLow(formDataDTO); |
| | | Map<String,String> allDataMapLow = new HashMap<>(); |
| | | allDataMapLow.putAll(dataLow); |
| | | allDataMapLow.putAll(baseDataMap); |
| | | // allDataMapLow.putAll(baseDataMap); |
| | | //判断必输项 |
| | | BaseResult result = checkRequired(formDefineVO,null,allDataMapLow); |
| | | if(!result.isSuccess()){ |
| | |
| | | cbo.setBusinessObject(bo); |
| | | afterCBOs.add(cbo); |
| | | }); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(releasedFileOids)){ |
| | |
| | | // platformClientUtil.getBOFactoryService().updateBusinessObject(new BusinessObjectHolder(resultCbo.getObj().getBusinessObject())); |
| | | ServiceProvider.getBOFService().updateBusinessObject(resultCbo.getObj().getBusinessObject()); |
| | | result.setObj(boService.cbo2Map(resultCbo.getObj())); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(formDataDTO.getReleaseFileOids())){ |
| | |
| | | com.vci.client.bof.ClientBusinessObject afterCbo = new com.vci.client.bof.ClientBusinessObject(); |
| | | afterCbo.setBusinessObject(bo); |
| | | result.setObj(boService.cbo2Map(afterCbo)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(formDataDTO.getReleaseFileOids())){ |
| | |
| | | } |
| | | VciBaseUtil.switchCollectionForOracleIn(finalCbo).stream().forEach(cbos->{ |
| | | try { |
| | | platformClientUtil.getBOFactoryService().batchDeleteBusinessObject(cbos.stream().map(s->s.getBusinessObject()).collect(Collectors.toList()).toArray(new BusinessObject[0]),1); |
| | | } catch (VCIError vciError) { |
| | | // platformClientUtil.getBOFactoryService().batchDeleteBusinessObject(cbos.stream().map(s->s.getBusinessObject()).collect(Collectors.toList()).toArray(new BusinessObject[0]),1); |
| | | ServiceProvider.getBOFService().batchDeleteBusinessObject(cbos.stream().map(s->s.getBusinessObject()).collect(Collectors.toList()).toArray(new com.vci.corba.omd.data.BusinessObject[0]),1); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | }); |
| | | System.out.println("zheshi shazi "); |
| | | return BaseResult.success(); |
| | | } |
| | | |
| | |
| | | try { |
| | | // fromCbo.setBusinessObject(platformClientUtil.getBOFactoryService().readBusinessObject(fromOid,fromBtmName)); |
| | | fromCbo.setBusinessObject(ServiceProvider.getBOFService().readBusinessObject(fromOid,fromBtmName)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | String finalPrefix = prefix; |
| | |
| | | try { |
| | | // platformClientUtil.getBOFactoryService().createBusinessObjectWithLink(bosHolder,loHolder); |
| | | ServiceProvider.getBOFService().createBusinessObjectWithLink(bos,clo.getLinkObject()); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(formLinkDataDTO.getReleaseFileOids())){ |
| | |
| | | // platformClientUtil.getBOFactoryService().deleteLinkObject(clo.getLinkObject()); |
| | | ServiceProvider.getBOFService().deleteBusinessObject(toCbo.getBusinessObject(),1); |
| | | ServiceProvider.getBOFService().deleteLinkObject(clo.getLinkObject()); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | throw new VciBaseException(LangBaseUtil.getErrorMsg(e),new String[]{},e); |
| | |
| | | com.vci.corba.omd.data.LinkObject linkObject = ServiceProvider.getBOFService().readLinkObjectById(formLinkDataDTO.getOid(), formLinkDataDTO.getLinkType()); |
| | | clo = new com.vci.client.bof.ClientLinkObject(); |
| | | clo.setLinkObject(linkObject); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | }else{ |
| | |
| | | com.vci.client.bof.ClientBusinessObject cbo = new com.vci.client.bof.ClientBusinessObject(); |
| | | String copyfromversion = baseDataMap.get("copyfromversion"); |
| | | OsBtmTypeVO btmTypeVO = btmService.getBtmById(btmName); |
| | | List<String> attributeList = btmTypeVO.getAttributes().stream().map(attribute -> attribute.getId()).collect(Collectors.toList()); |
| | | if(editFlag || newRevision || newVersion){ |
| | | try { |
| | | // cbo.setBusinessObject(platformClientUtil.getBOFactoryService().readBusinessObject(editFlag?oid:copyfromversion,btmName)); |
| | | cbo.setBusinessObject(ServiceProvider.getBOFService().readBusinessObject(editFlag?oid:copyfromversion,btmName)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw new VciBaseException("使用主键在系统中没有查询到数据",new String[]{oid},vciError); |
| | | } |
| | | if(btmTypeVO.isRevisionFlag() && newRevision){ |
| | |
| | | LifeCycle lifeCycleVO = null; |
| | | try { |
| | | lifeCycleVO = ServiceProvider.getOMDService().getLifeCycleService().getLifeCycle(btmTypeVO.getLifeCycleId()); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | if(lifeCycleVO == null || StringUtils.isBlank(lifeCycleVO.oid)){ |
| | |
| | | LifeCycle lifeCycleVO = null; |
| | | try { |
| | | lifeCycleVO = ServiceProvider.getOMDService().getLifeCycleService().getLifeCycle(btmTypeVO.getLifeCycleId()); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | if(lifeCycleVO == null || StringUtils.isBlank(lifeCycleVO.oid)){ |
| | |
| | | cbo.setIsFirstV(true); |
| | | } |
| | | } |
| | | // Iterator<Map.Entry<String, String>> iterator = baseDataMap.entrySet().iterator(); |
| | | // while(iterator.hasNext()){ |
| | | // Map.Entry<String, String> next = iterator.next(); |
| | | // if(!attributeList.contains(next.getKey())){ |
| | | // iterator.remove(); |
| | | // } |
| | | // } |
| | | setValueToCbo(dataLowMap,baseDataMap,cbo,editFlag); |
| | | // cbo.setName(dataLowMap.get("name")); |
| | | return cbo; |
| | | } |
| | | |
| | |
| | | //平台不能传递这个 |
| | | }else{ |
| | | try { |
| | | // if(!SystemAttribute.bosysAttList().contains(key)){ |
| | | cbo.setAttributeValueWithNoCheck(key, value, !editFlag); |
| | | } catch (VCIError vciError) { |
| | | // } |
| | | } catch (PLException vciError) { |
| | | throw new VciBaseException("{0}的值不符合要求,当前是{1}", new String[]{key, value}, vciError); |
| | | } |
| | | } |
| | |
| | | if(editFlag) { |
| | | //编辑的时候可以都设置 |
| | | try { |
| | | // if(!SystemAttribute.bosysAttList().contains(key)){ |
| | | cbo.setAttributeValueWithNoCheck(key, value, !editFlag); |
| | | } catch (VCIError vciError) { |
| | | // } |
| | | } catch (PLException vciError) { |
| | | throw new VciBaseException("{0}的值不符合要求,当前是{1}", new String[]{key, value}, vciError); |
| | | } |
| | | }else{ |
| | | //只需要处理id,name,description,密级即可,其余的都已经被设置了 |
| | | if(basicFields.contains(key) &&StringUtils.isNotBlank(value)){ |
| | | try { |
| | | // if(!SystemAttribute.bosysAttList().contains(key)){ |
| | | cbo.setAttributeValueWithNoCheck(key, value, true); |
| | | } catch (VCIError vciError) { |
| | | // } |
| | | } catch (PLException vciError) { |
| | | throw new VciBaseException("{0}的值不符合要求,当前是{1}", new String[]{key, value}, vciError); |
| | | } |
| | | } |
| | |
| | | try { |
| | | // platformClientUtil.getBOFactoryService().updateLinkObject(loHolder); |
| | | ServiceProvider.getBOFService().updateLinkObject(clo.getLinkObject()); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | //保存to端或者from端 |
| | |
| | | try{ |
| | | // platformClientUtil.getBOFactoryService().updateBusinessObject(boHolder); |
| | | ServiceProvider.getBOFService().updateBusinessObject(toCbo.getBusinessObject()); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | if(!CollectionUtils.isEmpty(formLinkDataDTO.getReleaseFileOids())){ |
| | |
| | | import com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder; |
| | | import com.thoughtworks.xstream.io.xml.XppDriver; |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.portal.data.PLTabButton; |
| | | import com.vci.corba.portal.data.PLUILayout; |
| | |
| | | try { |
| | | portalVIS = ServiceProvider.getUIService().getAllPortalVI(); |
| | | // portalVIS = platformClientUtil.getPortalService().getAllPortalVI(); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | for(int i = 0 ; i < portalVIS.length ; i++){ |
| | |
| | | PortalVI[] portalVIS = null; |
| | | try { |
| | | portalVIS = ServiceProvider.getUIService().getAllPortalVI(); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | List<PortalVI> portalVIList = Arrays.stream(portalVIS).filter(portal -> 1 == portal.viType).collect(Collectors.toList()); |
| | |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = ServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | return formDO2VO(portalVI); |
| | |
| | | PortalVI[] portalVIS = null; |
| | | try { |
| | | portalVIS = ServiceProvider.getUIService().getAllPortalVI(); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | List<PortalVI> portalVIList = Arrays.stream(portalVIS).filter(portal -> 0 == portal.viType).collect(Collectors.toList()); |
| | |
| | | }else{ |
| | | try { |
| | | formDefineVO = formDO2VO(ServiceProvider.getUIService().getPortalVIById(formOid)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = ServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | return tableDO2VO(portalVI,true); |
| | |
| | | try { |
| | | // return actionDO2VOs(Arrays.stream(platformClientUtil.getPortalService().getAllPLAction()).collect(Collectors.toList())); |
| | | return actionDO2VOs(Arrays.stream(ServiceProvider.getUIService().getAllPLAction()).collect(Collectors.toList())); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | private List<UILayoutVO> listLayoutByContent(String pkContent){ |
| | | try { |
| | | return UILayoutDO2VOs(Arrays.stream(ServiceProvider.getUIService().getPLTabPagesByPageDefinationOId(pkContent)).collect(Collectors.toList()),true); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | try { |
| | | layoutVO.setComponentVOs(uiComponentDO2VOs(Arrays.stream(ServiceProvider.getUIService().getPLPageDefinationsByPageContextOId(layoutVO.getOid())).collect(Collectors.toList()),true)); |
| | | // layoutVO.setComponentVOs(uiComponentDO2VOs(Arrays.stream(platformClientUtil.getPortalService().getPLPageDefinationsByPageContextOId(layoutVO.getOid())).collect(Collectors.toList()),true)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | if(!QUERY_BY_CACHE){ |
| | | try { |
| | | return uiComponentDO2VO(ServiceProvider.getUIService().getPLPageDefinationById(componentOid),true); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | }else{ |
| | |
| | | try { |
| | | componentVO.setTableDefineVO(tableDO2VO(ServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true)); |
| | | //componentVO.setTableDefineVO(tableDO2VO(platformClientUtil.getPortalService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true)); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | }else{ |
| | | try { |
| | | tableDefineVO = tableDO2VO(ServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | }else{ |
| | | try { |
| | | componentVO.setFormDefineVO(formDO2VO(ServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()))); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | }else{ |
| | | return buttonDefineVOS; |
| | | } |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |
| | |
| | | params.put(parameter.plKey,parameter.plValue); |
| | | } |
| | | } |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | buttonVO.setParamVOS(params); |
| | |
| | | // obj = platformClientUtil.getPortalService().getPLPageLayoutDefinationsByRelatedType(btmType); |
| | | // obj = ServiceProvider.geT(btmType); |
| | | |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | PLUILayout context = null; |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.vci.base.common.utility.ObjectUtility; |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.qtm.QTInfo; |
| | | import com.vci.corba.query.ObjectQueryService; |
| | |
| | | Optional.ofNullable(btmTypeVO.getAttributes()).orElseGet(()->new ArrayList<>()).stream().forEach(attribute->{ |
| | | try { |
| | | cbo.setAttributeValueWithNoCheck(attribute.getId(),attribute.getDefaultValue()); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | if(logger.isErrorEnabled()){ |
| | | logger.error("设置属性的值的时候出现了错误",vciError); |
| | | } |
| | |
| | | logger.error("没有找到查询服务"); |
| | | throw new VciBaseException(msgCodePrefix+"qtServerNull", new String[]{}); |
| | | } |
| | | IntHolder count = new IntHolder(); |
| | | // IntHolder count = new IntHolder(); |
| | | ObjectQueryService.FindBTMObjectsV3Result bos = null; |
| | | String invo = JSONObject.toJSONString(InvocationUtility.getInvocation()); |
| | | // String invo = JSONObject.toJSONString(InvocationUtility.getInvocation()); |
| | | try{ |
| | | //bos = qtService.findBTMObjectsV3(invo,qt.getId(), Tool.qtTOXMl(qt).asXML(),count,refOpts.toArray(new BtmRefQueryOption[0])); |
| | | bos = qtService.findBTMObjectsV3(qt.getId(), Tool.qtTOXMl(qt).asXML(), refOpts.toArray(new BtmRefQueryOption[0])); |
| | | }catch (VCIError e){ |
| | | }catch (PLException e){ |
| | | //bos = qtService.findBTMObjectsV4(invo,qt.getId(), Tool.qtTOXMl(qt).asXML(),count,refOpts.toArray(new BtmRefQueryOption[0])); |
| | | bos = qtService.findBTMObjectsV3(qt.getId(), Tool.qtTOXMl(qt).asXML(), refOpts.toArray(new BtmRefQueryOption[0])); |
| | | } |
| | | if (bos != null && bos.count > 0) { |
| | | for (com.vci.corba.omd.data.BusinessObject bo : bos.returnValue) { |
| | | com.vci.client.bof.ClientBusinessObject cbo = new com.vci.client.bof.ClientBusinessObject(); |
| | | // BusinessObject businessObject = new BusinessObject(bo.oid, bo.revisionid, bo.nameoid, bo.btName, bo.isLastR ? 1 : 0, bo.isFirstR ? 1 : 0, |
| | | // bo.isLastV ? 1 : 0, bo.isFirstV ? 1 : 0, bo.creator, String.valueOf(bo.createTime), bo.modifier, String.valueOf(bo.modifyTime), |
| | | // bo.revisionRule, bo.versionRule, bo.revisionSeq, bo.revisionValue, bo.versionSeq, |
| | | // bo.versionValue, bo.lctId, bo.lcStatus, String.valueOf(bo.ts), bo.id, bo.name, bo.description, |
| | | // bo.owner,null, null, null, null, |
| | | // bo.fromVersion, copyToAttributeValue(bo.newAttrValList), copyToAttributeValue(bo.hisAttrValList)); |
| | | cbo.setBusinessObject(bo); |
| | | queryEnumText(cbo,enumAttrName); |
| | | allCbos.add(cbo); |
| | |
| | | //因为修改了查询的方式,所以就不需要单独查询参照 |
| | | } |
| | | queryLcStatus(allCbos); |
| | | } catch (VCIError e) { |
| | | //logger.error(e.error_code,e); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | return allCbos; |
| | |
| | | } |
| | | }); |
| | | } |
| | | }catch(VCIError e){ |
| | | }catch(PLException e){ |
| | | //logger.error(e.error_code,e); |
| | | //throw WebUtil.getVciBaseException(e); |
| | | } catch (DocumentException e) { |
| | | } catch (DocumentException | VCIError e) { |
| | | logger.error("查询模板转换",e); |
| | | throw new VciBaseException(this.msgCodePrefix + "qtError", new Object[]{name}); |
| | | } |
| | |
| | | try{ |
| | | // count = platformClientUtil.getQueryService().findTotalCount(); |
| | | count = Integer.parseInt(String.valueOf(ServiceProvider.getOQService().findTotalCount(qt.getId(), Tool.qtTOXMl(qt).asXML()))); |
| | | }catch (VCIError e) { |
| | | }catch (PLException e) { |
| | | try { |
| | | // count = platformClientUtil.getQueryService().findTotalCount(qt.getId(), Tool.qtTOXMl(qt).asXML()); |
| | | count = Integer.parseInt(String.valueOf(ServiceProvider.getOQService().findTotalCount(qt.getId(), Tool.qtTOXMl(qt).asXML()))); |
| | | }catch (VCIError ee) { |
| | | }catch (PLException ee) { |
| | | // logger.error(ee.error_code,ee); |
| | | // throw WebUtil.getVciBaseException(ee); |
| | | } |
| | |
| | | dataList.add(data); |
| | | } |
| | | } |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | return dataList; |
| | |
| | | sql = sql.replaceAll(" FROM "," from "); |
| | | } |
| | | |
| | | AttributeValue[] ava = null; |
| | | com.vci.corba.omd.data.AttributeValue[] ava = null; |
| | | if(conditionMap!=null&&!conditionMap.isEmpty()){ |
| | | ava = new AttributeValue[conditionMap.size()]; |
| | | ava = new com.vci.corba.omd.data.AttributeValue[conditionMap.size()]; |
| | | Iterator<String> it = conditionMap.keySet().iterator(); |
| | | int i = 0 ; |
| | | while(it.hasNext()){ |
| | |
| | | if(value == null){ |
| | | value = ""; |
| | | } |
| | | AttributeValue av = new AttributeValue(key, value); |
| | | com.vci.corba.omd.data.AttributeValue av = new com.vci.corba.omd.data.AttributeValue(key, value); |
| | | ava[i] = av; |
| | | i++; |
| | | } |
| | | }else{ |
| | | ava = new AttributeValue[0]; |
| | | ava = new com.vci.corba.omd.data.AttributeValue[0]; |
| | | } |
| | | try { |
| | | String[][] results =platformClientUtil.getBOFactoryService().getSqlQueryResult(sql, ava); |
| | | // String[][] results =platformClientUtil.getBOFactoryService().getSqlQueryResult(sql, ava); |
| | | String[][] results =ServiceProvider.getBOFService().getSqlQueryResult(sql, ava); |
| | | if(results.length>0){ |
| | | if(selectKeys==null) { |
| | | String selectSql = sql.substring(sql.toLowerCase(Locale.ROOT).indexOf("select") + 6, sql.toLowerCase(Locale.ROOT).indexOf(" from")).trim(); |
| | |
| | | }else{ |
| | | return new ArrayList<Map>(); |
| | | } |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | // logger.error(e.error_code,e); |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | |
| | | } else { |
| | | cbo.setAttributeValueWithNoCheck(attrName.toLowerCase(), value); |
| | | } |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | } |
| | |
| | | cboArray2Bo(batchCbos.getUpdateCboArray()), |
| | | cloArray2Lo(batchCbos.getUpdateCloArray()), |
| | | cboArray2Bo(batchCbos.getDeleteCboArray()), cloArray2Lo(batchCbos.getDeleteCloArray())); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | } |
| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.omd.etm.EnumType; |
| | | import com.vci.starter.poi.bo.WriteExcelData; |
| | | import com.vci.starter.poi.bo.WriteExcelOption; |
| | | import com.vci.starter.poi.util.ExcelUtil; |
| | |
| | | import plm.corba.attribpool.AttribItem; |
| | | import plm.corba.btm.BTMServiceOperations; |
| | | import plm.corba.btm.BtmItem; |
| | | import com.vci.corba.omd.etm.EnumChild; |
| | | import com.vci.corba.omd.etm.EnumItem; |
| | | import plm.corba.lifecycle.Bound; |
| | | import plm.corba.lifecycle.LifeCyle; |
| | |
| | | private void importEnums(Collection<OsEnumDTO> enumDTOList) throws VciBaseException{ |
| | | Set<String> existEnumIdList = enumService.selectAllEnumMap().keySet(); |
| | | Map<String, OsEnumVO> allEnumMap = enumService.selectAllEnumMap(); |
| | | List<EnumItem> unExistEnumList = new ArrayList<EnumItem>(); |
| | | List<EnumItem> editEnumList = new ArrayList<EnumItem>(); |
| | | List<EnumType> unExistEnumList = new ArrayList<EnumType>(); |
| | | List<EnumType> editEnumList = new ArrayList<EnumType>(); |
| | | |
| | | String userId = WebUtil.getCurrentUserId(); |
| | | String now = VciDateUtil.getNowString(VciDateUtil.DateTimeFormat); |
| | |
| | | for(OsEnumDTO enumDTO : enumDTOList){ |
| | | String enumId = enumDTO.getId().toLowerCase().trim(); |
| | | if(!existEnumIdList.contains(enumId)){ |
| | | EnumItem enumItem = new EnumItem(); |
| | | EnumType enumItem = new EnumType(); |
| | | enumItem.oid = ""; |
| | | enumItem.ts = now; |
| | | enumItem.creator = userId; |
| | |
| | | enumItem.type = "int".equalsIgnoreCase(enumDTO.getEnumValueDataType())?"Integer":"String"; |
| | | enumItem.length = enumDTO.getLength(); |
| | | |
| | | List<EnumChild> childList = new ArrayList<EnumChild>(); |
| | | List<EnumItem> childList = new ArrayList<EnumItem>(); |
| | | Map<String, String> itemMaps = enumDTO.getItemMaps(); |
| | | if(CollectionUtils.isEmpty(itemMaps)){ |
| | | throw new VciBaseException("枚举{0}没有选项",new String[]{enumItem.name}); |
| | | } |
| | | for(String key : itemMaps.keySet()){ |
| | | String value = itemMaps.get(key); |
| | | EnumChild enumChild = new EnumChild(); |
| | | EnumItem enumChild = new EnumItem(); |
| | | enumChild.name = value; |
| | | enumChild.value = key; |
| | | enumChild.description = ""; |
| | | childList.add(enumChild); |
| | | } |
| | | enumItem.children = childList.toArray(new EnumChild[0]); |
| | | enumItem.items = childList.toArray(new EnumItem[0]); |
| | | unExistEnumList.add(enumItem); |
| | | }else{ |
| | | //修改内容 |
| | | EnumItem enumItem = new EnumItem(); |
| | | EnumType enumItem = new EnumType(); |
| | | OsEnumVO enumVO = allEnumMap.get(enumId); |
| | | enumItem.oid = enumVO.getOid(); |
| | | // enumItem.createTime = VciDateUtil.date2Str(enumVO.getCreateTime(),VciDateUtil.DateTimeFormat); |
| | |
| | | enumItem.type = "int".equalsIgnoreCase(enumDTO.getEnumValueDataType())?"Integer":"String"; |
| | | enumItem.length = enumDTO.getLength(); |
| | | |
| | | List<EnumChild> childList = new ArrayList<EnumChild>(); |
| | | List<EnumItem> childList = new ArrayList<EnumItem>(); |
| | | Map<String, String> itemMaps = enumDTO.getItemMaps(); |
| | | if(CollectionUtils.isEmpty(itemMaps)){ |
| | | throw new VciBaseException("枚举{0}没有选项",new String[]{enumItem.name}); |
| | | } |
| | | for(String key : itemMaps.keySet()){ |
| | | String value = itemMaps.get(key); |
| | | EnumChild enumChild = new EnumChild(); |
| | | EnumItem enumChild = new EnumItem(); |
| | | enumChild.name = value; |
| | | enumChild.value = key; |
| | | enumChild.description = ""; |
| | | childList.add(enumChild); |
| | | } |
| | | enumItem.children = childList.toArray(new EnumChild[0]); |
| | | enumItem.items = childList.toArray(new EnumItem[0]); |
| | | editEnumList.add(enumItem); |
| | | } |
| | | } |
| | |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.vci.base.common.utility.ObjectUtility; |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.query.ObjectQueryService; |
| | | import com.vci.starter.web.constant.QueryOptionConstant; |
| | |
| | | // com.vci.corba.query.data.BOAndLO[] bos = platformClientUtil.getQueryService().getBOAndLOS(qt.getId(), Tool.qtTOXMl(qt).asXML(),linkTypeDataQuery.getParentOid()==null?"":linkTypeDataQuery.getParentOid()); |
| | | com.vci.corba.query.data.BOAndLO[] bos = ServiceProvider.getOQService().getBOAndLOS(qt.getId(), Tool.qtTOXMl(qt).asXML(),linkTypeDataQuery.getParentOid()==null?"":linkTypeDataQuery.getParentOid()); |
| | | return Arrays.stream(bos).collect(Collectors.toList()); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | // logger.error(e.error_code,e); |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | |
| | | }); |
| | | dataGrid.setData(data); |
| | | dataGrid.setTotal(total[0]); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | // logger.error(e.error_code,e); |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.vci.base.ui.exception.VCIException; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.framework.data.UserEntityInfo; |
| | | import com.vci.rmip.framework.client.systemConfig.object.UserEntityObject; |
| | |
| | | setValueToField(key, cbo, value); |
| | | } |
| | | cbo.setAttributeValueWithNoCheck(key.toLowerCase(), value); |
| | | } catch (VCIError e) { |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | } |
| | |
| | | * @param e 异常对象 |
| | | * @return base异常对象 |
| | | */ |
| | | public static VciBaseException getVciBaseException(PLException e){ |
| | | return new VciBaseException(e.code, new java.lang.String[]{e.getMessage()}); |
| | | // return null; |
| | | } |
| | | |
| | | /** |
| | | * 转换异常 |
| | | * @param e 异常对象 |
| | | * @return base异常对象 |
| | | */ |
| | | public static VciBaseException getVciBaseException(VCIException e){ |
| | | String[] errorMsgs = new String[0]; |
| | | if(e != null && e.getException_objArray() !=null ){ |